Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docsify init error (SyntaxError: Unexpected token =) #210

Closed
etigui opened this issue Feb 5, 2024 · 3 comments
Closed

Docsify init error (SyntaxError: Unexpected token =) #210

etigui opened this issue Feb 5, 2024 · 3 comments

Comments

@etigui
Copy link

etigui commented Feb 5, 2024

Version

npm: 6.14.4

Steps to reproduce

$ sudo npm install docsify-cli -g                                                                                                                                              
/usr/local/bin/docsify -> /usr/local/lib/node_modules/docsify-cli/bin/docsify
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/docsify-cli/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

+ [email protected]
updated 1 package in 18.77s

$ docsify init docs
/usr/local/lib/node_modules/docsify-cli/node_modules/enquirer/lib/queue.js:4
  _queue = [];
         ^

SyntaxError: Unexpected token =
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/docsify-cli/node_modules/enquirer/lib/keypress.js:5:15)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
@shine-fire
Copy link

I'm having the same issue

@diablov
Copy link

diablov commented Jul 9, 2024

same, use nodejs16 solve.

@sy-records
Copy link
Member

Please use a high version of nodejs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants