日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 前端文檔 正文

解決sass問題:npm ERR! node-sass@9.0.0 postinstall: `node scripts/build.js`

作者:云邊的快樂貓 更新時間: 2024-03-20 前端文檔

目錄

一、遇到問題

解決辦法

二、?再次遇到問題?

解決辦法?

題外話


一、遇到問題

1.運行這個項目的適合,遇到了沒有sass的問題

解決辦法

然后就用命令下載sass

npm install  node-sass

二、?再次遇到問題?

2.下載sass的時候又發現了一個這樣的問題

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@9.0.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@9.0.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.  

npm ERR! A complete log of this run can be found in:
npm ERR!     D:\IT_base\node16\node_cache\_logs\2023-09-15T17_50_36_308Z-debug.log

解決辦法?

檢查在這個錯誤之前有沒有其他的錯誤出現,如果有就先去解決其他的問題,只有這個錯誤就把這個sass的源改成淘寶源就可以解決了

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

然后再去重新下載依賴試試看

npm install

題外話

我這里除了這個錯誤,還有沒有下載python環境的錯誤,要先去下載python的環境再來弄這個。

原文鏈接:https://blog.csdn.net/m0_52861000/article/details/132914025

  • 上一篇:沒有了
  • 下一篇:沒有了
欄目分類
最近更新