Module build failed: Error: Node Sass version 5.0.0 is incompatible with ^4.0.0.
at getRenderFuncFromSassImpl (D:\code\view\mango-ui\node_modules\sass-loader\dist\index.js:165:13)
at Object.loader (D:\code\view\mango-ui\node_modules\sass-loader\dist\index.js:79:18)
@ ./node_modules/vue-style-loader!./node_modules/css-loader?{"sourceMap":true}!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-09c68b87","scoped":false,"hasInlineConfig":false}!./node_modules/sass-loader/dist/cjs.js?{"sourceMap":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/views/error/404.vue 4:14-381 13:3-17:5 14:22-389
@ ./src/views/error/404.vue
@ ./src/router/index.js
@ ./src/main.js
把项目的:node_modules删除。把package.json从同事那里复制过来。
配置淘宝镜像
npm config set registry https://registry.npm.taobao.org
配置完成后检验是否成功
npm config get registry
重新安装
npm install npm -g
查看所用的镜像
npm ls