vue项目执行npm install报错 npm ERR node-sass postinstall node scripts/build.js npm ERR Exit status 1
先执行下面命令如果没报错就解决了
npm install --save-dev node-sass --registry=https://registry.npmmirror.com
要是执行上面报错:gyp ERR! stack Error: gyp
failed with exit code: 1
执行下面命令
1. > npm install -g cnpm --registry=https://registry.npmmirror.com
2. > cnpm install
或者执行
3. > npm install
然后执行下面命令启动项目
npm run serve