国产成人精品久久免费动漫-国产成人精品天堂-国产成人精品区在线观看-国产成人精品日本-a级毛片无码免费真人-a级毛片毛片免费观看久潮喷

您的位置:首頁技術文章
文章詳情頁

vue在install時node-sass@4.14.1 postinstall:node scripts/build.js錯誤解決

瀏覽:187日期:2022-06-09 17:50:12
目錄
  • 報錯如下:
  • 解決方式1:
  • 解決方式2:
  • 總結

今天重裝了node和Vue腳手架,在install的時候報了下面的錯誤

報錯如下:

Build failed with error code: 1
[npminstall:runscript:error] node-sass@^4.14.1 run postinstall node scripts/build.js error: Error: Command failed with exit code 1: node scripts/build.js
at makeError (E:\node\node_global\node_modules\cnpm\node_modules\execa\lib\error.js:60:11)
at handlePromise (E:\node\node_global\node_modules\cnpm\node_modules\execa\index.js:118:26)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:94:5)
at async Object.exports.runScript (E:\node\node_global\node_modules\cnpm\node_modules\npminstall\lib\utils.js:262:12)
at async runLifecycleScripts (E:\node\node_global\node_modules\cnpm\node_modules\npminstall\lib\lifecycle_scripts.js:64:7)
at async _install (E:\node\node_global\node_modules\cnpm\node_modules\npminstall\lib\install_package.js:318:5)
at async install (E:\node\node_global\node_modules\cnpm\node_modules\npminstall\lib\install_package.js:23:12)
at async _installOne (E:\node\node_global\node_modules\cnpm\node_modules\npminstall\lib\local_install.js:214:15)
at async mapper (E:\node\node_global\node_modules\cnpm\node_modules\npminstall\lib\local_install.js:139:5) {
shortMessage: ‘Command failed with exit code 1: node scripts/build.js’,
command: ‘node scripts/build.js’,
escapedCommand: ‘node “scripts/build.js”’,
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: undefined,
stderr: undefined,
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
× Install fail! Error: run postinstall error, please remove node_modules before retry!
Command failed with exit code 1: node scripts/build.js
Error: Command failed with exit code 1: node scripts/build.js
at makeError (E:\node\node_global\node_modules\cnpm\node_modules\execa\lib\error.js:60:11)
at handlePromise (E:\node\node_global\node_modules\cnpm\node_modules\execa\index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:94:5)
at async Object.exports.runScript (E:\node\node_global\node_modules\cnpm\node_modules\npminstall\lib\utils.js:262:12)
at async runLifecycleScripts (E:\node\node_global\node_modules\cnpm\node_modules\npminstall\lib\lifecycle_scripts.js:64:7)
at async _install (E:\node\node_global\node_modules\cnpm\node_modules\npminstall\lib\install_package.js:318:5)
at async mapper (E:\node\node_global\node_modules\cnpm\node_modules\npminstall\lib\local_install.js:139:5)
npminstall version: 7.5.1
npminstall argv: E:\node\node.exe E:\node\node_global\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\Administrator.cnpmrc --disturl=https://npmmirror.com/mirrors/node --registry=https://registry.npmmirror.com

解決方式1:

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

雖然解決了這個問題,但是我打開頁面不行。于是我可能知道是node版本太高的原因導致下載的sass源下載不下來,版本高很難下載版本低的東西。

解決方式2:

重裝node,我安裝了node12就沒問題了,這是最粗暴的解決方式

總結

到此這篇關于vue在install時node-sass@4.14.1 postinstall:node scripts/build.js錯誤解決的文章就介紹到這了,更多相關vue install時node-sass@4.14.1內容請搜索以前的文章或繼續瀏覽下面的相關文章希望大家以后多多支持!

標簽: JavaScript
主站蜘蛛池模板: 久久狠狠躁免费观看2020 | 毛片看 | 欧美日本在线视频 | 日本护士视频xxxxxwww | 国产亚洲高清不卡在线观看 | 成人午夜亚洲影视在线观看 | 九九视频在线观看视频6偷拍 | 国产亚洲精品福利片 | 欧美一区二区三区久久综 | 黄色成人在线 | 黄色三级三级三级免费看 | 99在线播放 | 自拍三级视频 | 久久久久综合国产 | 在线男人的天堂 | 毛片免费视频网站 | 久久99精品久久久久久秒播 | 特级aaa片毛片免费观看 | 国产精品高清久久久久久久 | 成人在免费视频手机观看网站 | 黄色wwwcom| 一道精品视频一区二区三区图片 | 中文字幕123区 | 99久在线精品99re6视频 | 一级成人毛片 | 国产精品福利午夜一级毛片 | 亚洲国产成人在人网站天堂 | 免费播放欧美毛片欧美a | 国产第三区 | 日本妞xxxxxxxxx69 | 亚洲午夜片 | 久草免费资源视频 | 国产精品一久久香蕉国产线看 | 好湿好紧好痛a级是免费视频 | 国产精品96久久久久久久 | 久久影视一区 | 黄色网址视频在线观看 | 一级毛片在线视频 | 最新国产中文字幕 | 国产精品怡红院在线观看 | 456主播喷水在线观看 |