npm ERR! Could not install from “Files\nodejs\node_cache\_npx\10184“ as it does not contain a packag
原因分析:node路径带有空格执行npm config get cache得到 D:\Program Files\nodejs\node_modules\npm\node_cache看到确实是program files 之间有空格解决方案:执行:npm config edit将带空格的路径改写为:D:\Program~1\nodejs\node_modules\npm\node_cache (这是 windows 的一种路径表达方式)或者直接执行 npm config
转载
2021-07-09 12:08:22 ·
3841 阅读 ·
1 评论