其他系列 | NodeJs Could not install from "Files\nodejs\node_cache\_npx\31128" as it does not contain a package.json file.

安装

npx @docusaurus/init@next init my-website facebook

 错误

 解决

出现问题的原因是node_cache的路径中存在空格

E:\document>npm config set prefix D:\Program Files\nodejs\node_global

E:\document>npm config set cache D:\Program Files\nodejs\node_cache

 重新安装

 

posted @ 2020-05-13 23:26  Tinywan  阅读(3769)  评论(0编辑  收藏  举报