错误:
This is probably not a problem with npm. There is likely additional logging output above.
使用 webpack 时出现图示报错,
最终解决方法:
- 删除根目录下的 node_modules 和 package-lock.json
- 执行命令 npm rm -rf node_modules (删除 node_modules)
- 执行命令 npm rm package-lock.json (删除 package-lock.json)
- 执行命令 npm cache clear --force (强制删除所有缓存)
- 执行命令 npm install (重新安装所有需要的依赖)
BINGGO!