启动vue项目失败,报错Failed at the node-sass@4.14.1 postinstall script.
生活随笔
收集整理的这篇文章主要介绍了
启动vue项目失败,报错Failed at the node-sass@4.14.1 postinstall script.
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
在启动vue项目的时候报错
报错信息如下:npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@4.14.1 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.找不到sass,查看node-sass文件,里面没有文件。所以在npm install前设置sass源。解决方案:直接在当前目录下进行node-sass 的数据源设置
npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass安装依赖:
#建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
#启动服务
npm run dev总结
以上是生活随笔为你收集整理的启动vue项目失败,报错Failed at the node-sass@4.14.1 postinstall script.的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: springboot Java实现多文件
- 下一篇: Vue CLI 安装