前端环境搭建问题报错

1. npm i安装依赖的时候,报错node-sass版本不匹配,错误状态status 1。

[email protected] postinstall: node scripts/build.js
npm ERR! Exit status 1

Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

我去搜过了node14匹配的node-sass版本应该是[email protected]以上,但是我安装4.14.1的时候安装报错。所以没办法,最后找到个一个最简单的办法:

  • npm install node-sass@npm:sass
  • 我习惯再npm i一下,然后npm run dev/serve运行

2. chrome扩展程序npm run build安装vue-devtools时报错,status2

npm ERR! code ELIFECYCLE

npm ERR! errno 2

npm ERR! [email protected] build: cd shells/chrome && cross-env NODE_ENV=production webpack --progress --hide-modules

npm ER

你可能感兴趣的:(项目中error总结,前端,webpack)