其他系列 | NodeJs Could not install from "Files odejs ode_cache\_npx31128" 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
odejs
ode_global

E:document>npm config set cache D:Program Files
odejs
ode_cache

 重新安装

原文地址:https://www.cnblogs.com/tinywan/p/12885682.html