使用node打包命令npm run build:prod 时报这个错误。
This is probably not a problem with npm. There is likely additional logging output above.
rd /s /q node_modules
将目录中的package-lock.json文件删除(如果有的情况下)
npm cache clean --force
# 强烈建议不要用直接使用 cnpm 安装,会有各种诡异的 bug,可以通过重新指定 registry 来解决 npm 安装速度慢的问题。
npm install --registry=https://registry.npmmirror.com