其他系列 | 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
重新安装