no such file or directory, npm i 安装的时候
📅 2026/7/16 3:49:28
👁️ 阅读次数
📝 编程学习
解决办法:
尝试: 删除 node_modules 文件夹
执行如下命令:
npm cache clean失败。
提示如下:
npm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is cons istent, use 'npm cache verify' instead. On the other hand, if you're debugging an issue with the installer, you can use `npm install --cache /tmp/empty-cache` to use a tempor ary cache instead of nuking the actual one.执行提示命令:
npm install --cache /tmp/empty-cache成功。
编程学习
技术分享
实战经验