午夜剧场伦理_日本一道高清_国产又黄又硬_91黄色网战_女同久久另类69精品国产_妹妹的朋友在线

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

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

瀏覽:359日期: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
主站蜘蛛池模板: 国产精品免费一区二区三区在线观看 | 日韩在线视频一区 | 精品视频久久久久久 | 一区二区免费在线 | 久久成人激情 | 久久精品中文字幕 | 人人搞人人插 | 黄色一级小视频 | 99热中文| 久久蜜臀精品av | 欧洲亚洲自拍 | 亚洲影院在线播放 | 日韩特黄| wwwxxx黄色 | 亚洲国产一区二区三区 | www男人的天堂 | 黄色大片网站 | 最新国产网址 | xxxxxx在线观看| 成人激情在线视频 | 激情欧美亚洲 | 久久亚洲一区二区三区四区 | 免费观看久久 | 欧美综合二区 | 中文字幕一区二区在线播放 | 亚洲免费中文字幕 | 免费成人毛片 | 福利姬在线播放 | 91福利视频网 | 91视频免费在线观看 | 亚洲福利在线视频 | 久草中文在线观看 | 国产毛片视频 | 日本乱子伦 | 秋霞成人午夜伦在线观看 | 超碰免费播放 | 亚洲一区二区av在线 | 二区视频在线 | 瑟瑟综合网 | 亚洲色在线视频 | 久久综合一区二区 |