国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

mac使用mvn下載node-sass 會(huì)Binary download failed, trying source

這篇具有很好參考價(jià)值的文章主要介紹了mac使用mvn下載node-sass 會(huì)Binary download failed, trying source。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

m1 上使用nvm

以下node的版本可以直接下載(Binary download,而不是 trying source)而不用切換mac cpu架構(gòu)
mac使用mvn下載node-sass 會(huì)Binary download failed, trying source,安裝環(huán)境/軟件配置,macos,sass,rust

 zhiwenwen@zhiwenwendeMBP cockpit % nvm install 14.15.5
Downloading and installing node v14.15.5...
Downloading https://nodejs.org/dist/v14.15.5/node-v14.15.5-darwin-x64.tar.xz...
################################################################################################################################### 100.0%
Computing checksum with shasum -a 256
Checksums matched!
Now using node v14.15.5 (npm v6.14.11)

經(jīng)測(cè)試上述使用nvm直接下載的node Binary ,可以下載對(duì)應(yīng)的node-sass版本不會(huì)報(bào)錯(cuò),但是如果上述版本下載的source類似下面,那么再去下載對(duì)應(yīng)的node-sass版本會(huì)報(bào)錯(cuò)

那么我們?nèi)绾卧趎ode上使用nvm下載node不去下載source呢?
見(jiàn)下文

?  sales_app git:(carDetail) nvm install 12.22.12
Downloading and installing node v12.22.12...
Downloading https://nodejs.org/dist/v12.22.12/node-v12.22.12-darwin-arm64.tar.xz...
-#O=-#      #        #                                                                                                                                                                                                        
curl: (22) The requested URL returned error: 404 
Binary download from https://nodejs.org/dist/v12.22.12/node-v12.22.12-darwin-arm64.tar.xz failed, trying source.
grep: /Users/gch/.nvm/.cache/bin/node-v12.22.12-darwin-arm64/node-v12.22.12-darwin-arm64.tar.xz: No such file or directory
Provided file to checksum does not exist.
Binary download failed, trying source.
Clang v3.5+ detected! CC or CXX not specified, will use Clang as C/C++ compiler!
Local cache found: $NVM_DIR/.cache/src/node-v12.22.12/node-v12.22.12.tar.xz
Checksums match! Using existing downloaded archive $NVM_DIR/.cache/src/node-v12.22.12/node-v12.22.12.tar.xz
$>./configure --prefix=/Users/gch/.nvm/versions/node/v12.22.12 <
INFO: configure completed successfully
/Library/Developer/CommandLineTools/usr/bin/make -C out BUILDTYPE=Release V=0
  touch /Users/gch/.nvm/.cache/src/node-v12.22.12/files/out/Release/obj.target/node_dtrace_header.stamp
  touch /Users/gch/.nvm/.cache/src/node-v12.22.12/files/out/Release/obj.target/specialize_node_d.stamp
  touch /Users/gch/.nvm/.cache/src/node-v12.22.12/files/out/Release/obj.target/tools/v8_gypfiles/v8_headers.stamp
  c++ -o /Users/gch/.nvm/.cache/src/node-v12.22.12/files/out/Release/obj.target/icui18n/deps/icu-small/source/i18n/nultrans.o ../deps/icu-small/source/i18n/nultrans.cpp '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_DARWIN_USE_64_BIT_INODE=1' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DOPENSSL_NO_ASM' '-DU_I18N_IMPLEMENTATION=1' '-DU_ATTRIBUTE_DEPRECATED=' '-D_CRT_SECURE_NO_DEPRECATE=' '-DU_STATIC_IMPLEMENTATION=1' '-DUCONFIG_NO_SERVICE=1' '-DU_ENABLE_DYLOAD=0' '-DU_HAVE_STD_STRING=1' '-DUCONFIG_NO_BREAK_ITERATION=0' -I../deps/icu-small/source/i18n -I../deps/icu-small/source/common  -O3 -gdwarf-2 -mmacosx-version-min=10.10 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++1y -stdlib=libc++ -fno-exceptions -fno-strict-aliasing -MMD -MF /Users/gch/.nvm/.cache/src/node-v12.22.12/files/out/Release/.deps//Users/gch/.nvm/.cache/src/node-v12.22.12/files/out/Release/obj.target/icui18n/deps/icu-small/source/i18n/nultrans.o.d.raw   -c
  c++ -o /Users/gch/.nvm/.cache/src/node-v12.22.12/files/out/Release/obj.target/icui18n/deps/icu-small/source/i18n/uspoof_conf.o ../deps/icu-small/source/i18n/uspoof_conf.cpp '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_DARWIN_USE_64_BIT_INODE=1' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DOPENSSL_NO_ASM' '-DU_I18N_IMPLEMENTATION=1' '-DU_ATTRIBUTE_DEPRECATED=' '-D_CRT_SECURE_NO_DEPRECATE=' '-DU_STATIC_IMPLEMENTATION=1' '-DUCONFIG_NO_SERVICE=1' '-DU_ENABLE_DYLOAD=0' '-DU_HAVE_STD_STRING=1' '-DUCONFIG_NO_BREAK_ITERATION=0' -I../deps/icu-small/source/i18n -I../deps/icu-small/source/common  -O3 -gdwarf-2 -mmacosx-version-min=10.10 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++1y -stdlib=libc++ -fno-exceptions -fno-strict-aliasing -MMD -MF /Users/gch/.nvm/.cache/src/node-v12.22.12/files/out/Release/.deps//Users/gch/.nvm/.cache/src/node-v12.22.12/files/out/Release/obj.target/icui18n/deps/icu-small/source/i18n/uspoof_conf.o.d.raw   -c

經(jīng)過(guò)分析發(fā)現(xiàn)命令安裝node版本時(shí),M1電腦自動(dòng)拼接路徑如下:

https://nodejs.org/dist/v12.22.12/node-v12.22.12-darwin-arm64.tar.xz

arm64是M1特有的軟件命令方式 目前node官網(wǎng)不提供此類的壓縮包壓縮包官網(wǎng)

解決方案

執(zhí)行install命令前先執(zhí)行M1兼容命令:
arch -x86_64 zsh
然后再執(zhí)行install會(huì)自動(dòng)修復(fù)下載版本的鏈接:

?  ~ arch -x86_64 zsh
?  ~ nvm install 12.22.0         
Downloading and installing node v12.22.0...
Downloading https://nodejs.org/dist/v12.22.0/node-v12.22.0-darwin-x64.tar.xz...
###################################################################################################### 100.0%
Computing checksum with shasum -a 256
Checksums matched!
Now using node v12.22.0 (npm v6.14.11)

注:使用 arch -arm64 zsh 切換為arm架構(gòu);顯示當(dāng)前主機(jī)硬件架構(gòu)類型 使用arch命令;查看當(dāng)前arch版本命令使用 arch --version文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-617851.html

到了這里,關(guān)于mac使用mvn下載node-sass 會(huì)Binary download failed, trying source的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • node-sass與node版本映射

    node-sass與node版本映射

    版本不匹配,比如在node16上面安裝node-sass 4.x,那么就可能會(huì)報(bào)以下錯(cuò)誤 項(xiàng)目中 node-sass 版本為4.x,本地node為14,但是服務(wù)器安裝的node版本是 16,要求node-sass版本為 6.x,更換node即可

    2024年02月12日
    瀏覽(21)
  • node與node-sass版本對(duì)應(yīng)

    node與node-sass版本對(duì)應(yīng)

    node:14.0.0 node-sass對(duì)應(yīng)node https://github.com/sass/node-sass/releases node-sass 和 sass-loader 的對(duì)應(yīng)關(guān)系一般的情況下4.XX.YY,XX就是對(duì)應(yīng)Node XX 版本 參考

    2024年01月24日
    瀏覽(19)
  • node-sass是什么

    是一種CSS預(yù)處理器,它擴(kuò)展了CSS的功能并提供了更強(qiáng)大的樣式表語(yǔ)言。Sass允許開(kāi)發(fā)人員使用變量、嵌套規(guī)則、混合(Mixins)、繼承等高級(jí)功能來(lái)編寫(xiě)更簡(jiǎn)潔、可維護(hù)的樣式代碼。 Sass有兩種語(yǔ)法格式:Sass(使用縮進(jìn))和SCSS(使用大括號(hào)和分號(hào))。Sass語(yǔ)法更加簡(jiǎn)潔,沒(méi)有大括

    2024年02月13日
    瀏覽(20)
  • node-sass版本問(wèn)題

    node-sass版本問(wèn)題

    NodeJS和Supported node-sass version https://www.npmjs.com/package/node-sass sass-loader 官網(wǎng)各種版本詳細(xì)信息(可支持的node-saas版本) https://github.com/webpack-contrib/sass-loader/releases 卸載掉本機(jī)node-sass sass-loader,卸載不掉的話手動(dòng)刪掉 ? ? ? ? sass-loader 4.1.1,node-sass 4.3.0 ????????sass-loader 7.0.3,n

    2024年02月07日
    瀏覽(21)
  • node版本與node-sass版本兼容

    node版本與node-sass版本兼容

    由于在安裝node-sass時(shí)經(jīng)常遇到版本兼容問(wèn)題,在運(yùn)行vue項(xiàng)目時(shí)就會(huì)出現(xiàn)一下錯(cuò)誤 以下為node版本與sass版本對(duì)應(yīng)關(guān)系圖 在vue項(xiàng)目中用scss寫(xiě)一個(gè)背景色 經(jīng)過(guò)測(cè)試,可以使用以下版本的node與sass版本 如果需要管理多node版本,可以使用gnvm,具體教程可查看

    2024年02月14日
    瀏覽(24)
  • node-sass 安裝失敗 Command failed 報(bào)錯(cuò) node_modules\node-sass: Command failed. Exit code: 1

    通過(guò) yarn install 安裝依賴包 node-sass 時(shí)總是報(bào)錯(cuò), 具體的錯(cuò)誤原因?yàn)?當(dāng)前使用的node版本與依賴的node-sass版本不匹配,調(diào)整當(dāng)前node版本,建議使用nvm來(lái)控制node版本切換 具體對(duì)應(yīng)關(guān)系如下: NodeJS Supported node-sass version Node Module Node 19 8.0+ 111 Node 18 8.0+ 108 Node 17 7.0+, 8.0 102 Node 16 6

    2024年02月04日
    瀏覽(25)
  • vue 中node-sass和sass版本問(wèn)題解決

    vue 中node-sass和sass版本問(wèn)題解決

    先開(kāi)始使用 “node-sass”: “^7.0.1” “sass-loader”: “^10.0.5” 然后使用npm install報(bào)錯(cuò) 后面百度,搜到了是因?yàn)?node-sass和sass-loader版本不對(duì)應(yīng)造成。 然后修改版本,增加sass引用 “node-sass”: “^7.0.1” “sass-loader”: “^7.3.1”, “sass”:“1.26.5”, 然后npm install安裝正確,但是npm r

    2024年02月11日
    瀏覽(42)
  • Win10安裝node-sass

    今天在Github上下載了一個(gè)前端開(kāi)源項(xiàng)目,當(dāng)我使用 npm 安裝依賴時(shí)出現(xiàn)了各種問(wèn)題,解決過(guò)程中學(xué)了挺多知識(shí),剛好總結(jié)一下。 安裝依賴,在根目錄下執(zhí)行 –legacy-peer-deps 因?yàn)轫?xiàng)目比較老,所以本地Node版本與項(xiàng)目版本有差距,就不能直接安裝依賴。報(bào)錯(cuò)建議使用 --legacy-peer

    2024年02月09日
    瀏覽(16)
  • node-sass生產(chǎn)環(huán)境編譯報(bào)錯(cuò)

    本地和local環(huán)境正常,pre和生產(chǎn)環(huán)境編譯報(bào)錯(cuò) local、pre、生產(chǎn)的編譯環(huán)境一樣,node版本都是14.16.1??截惐镜豱ode_modules文件夾到pre同樣報(bào)錯(cuò)。 應(yīng)該是node-sass和node的版本問(wèn)題,但是又找不到問(wèn)題,最后沒(méi)辦法把node-sass換成了sass 1、node-sass換成sass 2、全局替換 /deep/ = ::v-deep 3、e

    2024年03月12日
    瀏覽(19)
  • 解決node升級(jí)到18版本node-sass安裝問(wèn)題

    為了研究下chatgpt,node升級(jí)到18版本了,結(jié)果之前的項(xiàng)目都gg了,跑不起來(lái)了,一看就是node-sass不被支持了,版本要更新,解決方案如下: 首先系統(tǒng)環(huán)境變量增加一項(xiàng): 修改對(duì)應(yīng)項(xiàng)目里面的package.json的node-sass和sass-loader版本號(hào): 刪除項(xiàng)目的package.json.lock和yarn.lock這兩個(gè)文件,最

    2024年02月11日
    瀏覽(20)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包