webpack 报错处理

错误:

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

 使用 webpack 时出现图示报错,

 最终解决方法:

  1.  删除根目录下的 node_modules 和 package-lock.json
  2.  执行命令 npm rm -rf node_modules (删除 node_modules)
  3.  执行命令 npm rm package-lock.json (删除 package-lock.json)
  4.  执行命令 npm cache clear --force (强制删除所有缓存)
  5.  执行命令 npm install (重新安装所有需要的依赖)

BINGGO!

发布了7 篇原创文章 · 获赞 0 · 访问量 925

猜你喜欢

转载自blog.csdn.net/huoren_no1/article/details/94040111