0
点赞
收藏
分享

微信扫一扫

启动vue项目失败,报错Failed at the node-sass@4.14.1 postinstall script.


在启动vue项目的时候报错

启动vue项目失败,报错Failed at the node-sass@4.14.1 postinstall script._解决方案

报错信息如下:

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!

解决方案:直接在当前目录下进行node-sass 的数据源设置

npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass

安装依赖:
#建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题

npm install --registry=https://registry.npm.taobao.org

#启动服务

npm


举报

相关推荐

0 条评论