PS C:\Users\Administrator\Desktop\docsify> npm i docsify-cli -g changed 204 packages in 10s
PS C:\Users\Administrator\Desktop\docsify> docsify init ./docs docsify : 无法将“docsify”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路 径正确,然后再试一次。 所在位置 行:1 字符: 1 + docsify init ./docs + ~~~~~~~ + CategoryInfo : ObjectNotFound: (docsify:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
遇到包安装成功了却一直找不到路径,添加环境变量也不行。
这种情况可以尝试使用npx
npx docsify init ./docs