linux中npm run build 报错处理

npm run build
1、报错
internal/modules/cjs/loader.js:883
解决
cnpm install @vue/cli-service --unsafe-perm

2、ERROR in ./node_modules/_extract-text-webpack-plugin...

[email protected]@css-loader...
解决
npm rebuild node-sass

3、Error: EACCES: permission denied
chmod -R 777 目录
chmod -R 777 node_modules
再重新安装node-sass

4、Error:
ERROR in ./node_modules/[email protected]@babel-loader/lib!./node_modules
Can't resolve 'babel-runtime/core-js/array/from' in
Can't resolve 'babel-runtime/core-js/get-iterator'
Can't resolve 'babel-runtime/core-js/json/stringify'
重新单独安装依赖

你可能感兴趣的:(linux中npm run build 报错处理)