启动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实现多文件
- 下一篇: Git免密登陆远程