npm ERR! Failed at the node-sass@6.0.1 postinstall script

95 阅读1分钟
npm ERR! code ELIFECYCLE 259s

154npm ERR! errno 1 259s

155npm ERR! node-sass@6.0.1 postinstall: `node scripts/build.js` 259s

156npm ERR! Exit status 1 259s

157npm ERR! 259s

158npm ERR! Failed at the node-sass@6.0.1 postinstall script. 259s

159npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

image.png

cnpm i node-sass -D

image.png

image.png

1. 安装cnpm :`npm install cnpm -g`
2. 安装 node-sass: `cnpm install node-sass`
3. 继续安装 : `cnpm i node-sass -D`
4. 根据package.json安装依赖:`cnpm install`
5. 启动项目:`npm run serve`