报错:Error: module property was removed from Dependency_雪落满地香的博客-CSDN博客
根据对比,现在的webpack是5.27.0,之前可以正常运行的webpack版本是4.28.4,所以卸载webpack,再重新装一个低版本的
npm install webpack@4.28.4 --save-dev
结果出现版本冲突:
pm ERR! Could not resolve dependency:
npm ERR! peer webpack@"^4.36.0 || ^5.0.0" from sass-loader@10.3.1
npm ERR! node_modules/sass-loader
npm ERR! dev sass-loader@"^10.2.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
直接简单粗暴,使用--force
npm install webpack@4.28.4 --save-dev --force
就可以正常运行了