目錄
一、遇到問題
解決辦法
二、?再次遇到問題?
解決辦法?
題外話
一、遇到問題
1.運行這個項目的適合,遇到了沒有sass的問題
解決辦法
然后就用命令下載sass
npm install node-sass
二、?再次遇到問題?
2.下載sass的時候又發(fā)現(xiàn)了一個這樣的問題
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
解決辦法?
檢查在這個錯誤之前有沒有其他的錯誤出現(xiàn),如果有就先去解決其他的問題,只有這個錯誤就把這個sass的源改成淘寶源就可以解決了
npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
然后再去重新下載依賴試試看
npm install
題外話
我這里除了這個錯誤,還有沒有下載python環(huán)境的錯誤,要先去下載python的環(huán)境再來弄這個。文章來源:http://www.zghlxwxcb.cn/news/detail-740504.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-740504.html
到了這里,關(guān)于解決sass問題:npm ERR! node-sass@9.0.0 postinstall: `node scripts/build.js`的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!