docsifyjs / docsify-cli

🖌 docsify cli tool - A magical documentation generator.
https://cli.docsifyjs.org
MIT License
715 stars 153 forks source link

'docsify' is not an internal or external command, nor is it a runnable program or batch file #91

Open sdfsdfsoo opened 4 years ago

sdfsdfsoo commented 4 years ago

(win10 environment) npm i docsify-cli -g complete but run docsify init ./docs report an error : 'docsify' is not an internal or external command, nor is it a runnable program or batch file

sdfsdfsoo commented 4 years ago

npm: '6.10.1'

sdfsdfsoo commented 4 years ago

https://docsify.js.org/#/quickstart
This is the tutorial address

sdfsdfsoo commented 4 years ago

docsify-cli@4.4.0

sy-records commented 3 years ago

Are there any questions now?

VegeBun-csj commented 3 years ago

i alse meet this erro when i run "docsify init docs" after running "npm i docsify-cli -g". it shows 'docsify' is not an internal or external command, nor is it a runnable program or batch file.

i see many people meet this question,But no answers to it.

sy-records commented 3 years ago

I will check as soon as possible @VegeBun-csj

artemiseven commented 3 years ago

i alse meet this erro. my env is ubuntu 20.04.1 , shell is zsh. node -v
v14.15.3 npm -v
7.5.4

i try do this make it normal 1, make sure install docsify-cli complete, than go to intall path for check: xxx/nodejs/lib/node_modules/docsify-cli/bin 2, sudo ln -s /xxxx/nodejs/lib/node_modules/docsify-cli/bin/docsify /usr/local/bin/docsify 3, goto workspace , try docsify init ./docs again

sy-records commented 3 years ago

@artemiseven Are you Chinese? You can add my WeChat, I'll help you look at it

artemiseven commented 3 years ago

@artemiseven Are you Chinese? You can add my WeChat, I'll help you look at it

嗯 , 如何加你的微信?

sy-records commented 3 years ago

85464277

PDPENG commented 2 years ago

I have also encountered this problem. First of all, I would like to thank @sy-records for your help and summarize the solutions for your reference

Important

If you've ever changed the default file path while installing Node.js, add node_global to the system path variable, for example D:\SoftwareDownloading\nodejs\node_global . If the docsify -v version is not displayed after several attempts, switch to another terminal, for example, cmd、bash and so on.