当前位置: 首页 > 工具软件 > Likely > 使用案例 >

This is probably not a problem with npm. There is likely additional logging output above.

伏砚
2023-12-01

使用node打包命令npm run build:prod 时报这个错误。

This is probably not a problem with npm. There is likely additional logging output above.

(1)删除目录下的node_modules目录

(2)删除目录下的 package-lock.json文件

(3)清理npm缓存

(4)重新安装依赖


(1)删除目录下的node_modules目录

rd /s /q node_modules

(2)删除目录下的 package-lock.json文件

将目录中的package-lock.json文件删除(如果有的情况下)

(3)清理npm缓存

npm cache clean --force

(4)重新安装依赖

# 强烈建议不要用直接使用 cnpm 安装,会有各种诡异的 bug,可以通过重新指定 registry 来解决 npm 安装速度慢的问题。
npm install --registry=https://registry.npmmirror.com

 类似资料:

相关阅读

相关文章

相关问答