docsify-cli icon indicating copy to clipboard operation
docsify-cli copied to clipboard

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

Open sdfsdfsoo opened this issue 5 years ago • 11 comments

(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 avatar Jan 21 '20 07:01 sdfsdfsoo

npm: '6.10.1'

sdfsdfsoo avatar Jan 21 '20 08:01 sdfsdfsoo

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

sdfsdfsoo avatar Jan 21 '20 08:01 sdfsdfsoo

Are there any questions now?

sy-records avatar Nov 18 '20 00:11 sy-records

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.

  • [x] @sy-records

VegeBun-csj avatar Dec 12 '20 01:12 VegeBun-csj

I will check as soon as possible @VegeBun-csj

sy-records avatar Dec 12 '20 02:12 sy-records

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

artemiseven avatar Feb 20 '21 02:02 artemiseven

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

sy-records avatar Feb 20 '21 02:02 sy-records

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

嗯 , 如何加你的微信?

artemiseven avatar Feb 23 '21 06:02 artemiseven

85464277

sy-records avatar Feb 23 '21 06:02 sy-records

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.

PDPENG avatar Feb 20 '22 13:02 PDPENG