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

Error: Node Sass does not yet support your current environment: OS X Unsupported architecture (arm64

這篇具有很好參考價(jià)值的文章主要介紹了Error: Node Sass does not yet support your current environment: OS X Unsupported architecture (arm64。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

node-sass 常出現(xiàn)的兩個(gè)問題


一、node-sass 不支持 Mac M1

運(yùn)行安裝 node-sass 的項(xiàng)目報(bào)錯(cuò)如下

Syntax Error: Error: Node Sass does not yet support your current environment: OS X Unsupported architecture (arm64) with Node.js 14.x
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.0

不支持 Mac M1 的 Arm 架構(gòu)

解決方式

// 1.刪除項(xiàng)目依賴包 
rm -rf node_modules 
// 2.重新安裝依賴 最好使用最新的淘寶源 registry=https://registry.npmmirror.com
npm install
// 3.安裝 sass
npm install sass
// 重新運(yùn)行項(xiàng)目即可正常運(yùn)行

二、node-sass 不支持當(dāng)前 node 版本

node-sass 對(duì) node 版本的支持比較慢,通常會(huì)落下多個(gè)正式的 node 版本,一般來說安裝當(dāng)前版本的前兩到三個(gè)正式版本即可

解決方式

以 Mac M1 的 brew 安裝器的操作為例文章來源地址http://www.zghlxwxcb.cn/news/detail-609010.html

# 1.取消當(dāng)前node版本的鏈接
$ brew unlink node

# 2.查詢當(dāng)前有哪些可用node版本
$ brew search node
==> Formulae
libbitcoin-node     node-build          node@14 ?           nodeenv
linode-cli          node-sass           node@16             nodenv
llnode              node@10             node_exporter       ode
node ?              node@12             nodebrew

# 3.這里選擇安裝 node@14
$ brew install node@14

# 4.安裝成功后鏈接到 node@14 版本 會(huì)出現(xiàn)如下提示,安照提示刪除提示的文件即可
$ brew link node@14
Linking /opt/homebrew/Cellar/node@14/14.19.3...
Error: Could not symlink bin/npm
Target /opt/homebrew/bin/npm
already exists. You may want to remove it:
  rm '/opt/homebrew/bin/npm'

To force the link and overwrite all conflicting files:
  brew link --overwrite node@14

To list all files that would be deleted:
  brew link --overwrite --dry-run node@14
  
# 5.因?yàn)樾碌膎ode版本會(huì)攜帶相關(guān)的包,和前一個(gè)node版本的起沖突,刪除一個(gè)然后提示下一個(gè),
#   具體路徑按照自己終端的提示刪除(刪除需謹(jǐn)慎)
$ rm /opt/homebrew/bin/npm

# 6.刪除后重新 link 出現(xiàn)如下提示則為切換 node 版本成功
$ brew link node@14
Linking /opt/homebrew/Cellar/node@14/14.19.3... 3900 symlinks created.

If you need to have this software first in your PATH instead consider running:
  echo 'export PATH="/opt/homebrew/opt/node@14/bin:$PATH"' >> ~/.zshrc
  
# 7.查看node版本,確認(rèn)是否替換成功
$ node -v
v14.19.3
$ npm -v
6.14.17

到了這里,關(guān)于Error: Node Sass does not yet support your current environment: OS X Unsupported architecture (arm64的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(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)文章

  • mysql8修改密碼報(bào):Your password does not satisfy the current policy requirements

    mysql8修改密碼報(bào):Your password does not satisfy the current policy requirements

    mysql修改密碼時(shí)出現(xiàn)錯(cuò)誤; mysql8當(dāng)執(zhí)行修改密碼語(yǔ)句(兩者之一)出現(xiàn)以下錯(cuò)誤: 1、 ALTER USER USER() IDENTIFIED BY \\\'自己的密碼\\\'; 2、ALTER user \\\'root\\\'@\\\'%\\\' identified WITH mysql_native_password by \\\'自己的密碼\\\'; 這是由于這個(gè)自定義密碼過于簡(jiǎn)單,不符合MySQL密碼規(guī)范 執(zhí)行以下兩行代碼修改安全

    2023年04月12日
    瀏覽(18)
  • 解決yolov5的報(bào)錯(cuò):WARNING  Environment does not support cv2.imshow() or PIL Image.show()

    解決yolov5的報(bào)錯(cuò):WARNING Environment does not support cv2.imshow() or PIL Image.show()

    這幾天在用yolo v5訓(xùn)練模型調(diào)用電腦攝像頭的時(shí)候遇到了這個(gè)報(bào)錯(cuò),嘗試了很多辦法去解決,比如用pip卸載opencv再重新下載和跟換opencv的版本,或者更改yolo里的代碼,但是都沒有解決問題。 后來發(fā)現(xiàn)在我卸載了opencv后,pycharm里的cv2模塊依然可以被調(diào)用,所以應(yīng)該是pip的unins

    2024年02月07日
    瀏覽(87)
  • npm does not support Node.js的解決辦法

    npm does not support Node.js的解決辦法

    1、查看npm和nodejs的版本是否配套。 ?2、因?yàn)槲业氖褂昧薾pm install -g npm 把npm的版本升級(jí)到了9.幾 導(dǎo)致運(yùn)行項(xiàng)目的時(shí)候提示npm v9.8.0 does not support Node.js v14.16.1,查閱了很多資料之后感覺太麻煩了,現(xiàn)在問題解決了,就把這個(gè)解決方法記錄下來。 (1)首先去到C盤,打開到C:/user

    2024年02月13日
    瀏覽(27)
  • Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol 解決辦法

    Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol 解決辦法

    ?? ?1.啟動(dòng)數(shù)據(jù)庫(kù) net start mysql ?? ?2.登錄數(shù)據(jù)庫(kù) mysql -u root -p ?? ?3.用數(shù)據(jù)庫(kù) ?? ??? ?eg:有 sys,name , age三個(gè)數(shù)據(jù)庫(kù)你用哪個(gè)就需要執(zhí)行命令,如下 ?? ??? ?mysql use name ?? ?4. alter user \\\'root\\\'@\\\'localhost\\\' identified with mysql_native_password by \\\'123456\\\';? ?? ??? ? ?//123456為數(shù)據(jù)庫(kù)密

    2024年02月06日
    瀏覽(33)
  • JavaCV error AAC with no global headers is currently not supported

    當(dāng)我使用JavaCV庫(kù)(FFmpegFrameGrabber + FFmpegFrameRecorde)嘗試將dhav碼流轉(zhuǎn)為rtsp的時(shí)候,出現(xiàn)了以下報(bào)錯(cuò): 意思就是缺少全局頭部信息的AAC編碼器不被支持,那么給它添加一些配置信息即可。

    2024年02月16日
    瀏覽(18)
  • Node js 升級(jí)更新后 npm用不了 npm npm does not support Node.js 或者node版本太低

    Node js 升級(jí)更新后 npm用不了 npm npm does not support Node.js 或者node版本太低

    一開始是出現(xiàn)node版本太低,然后升級(jí)了node發(fā)現(xiàn)升級(jí)后npm不支持,發(fā)現(xiàn)是node的版本需要與npm對(duì)應(yīng),而npm沒法跨級(jí)升,下面教大家解決辦法: 一、檢查你的nodejs和npm的版本能否對(duì)應(yīng)得上 (注:如果npm版本查詢顯示空也可以用下面的方法) 這里附上 npm和node版本對(duì)照官網(wǎng) : 以往的

    2024年02月02日
    瀏覽(30)
  • Unity 出現(xiàn)error CS0103: The name ‘AssetDatabase‘ does not exist in the current context

    Unity 出現(xiàn)error CS0103: The name ‘AssetDatabase‘ does not exist in the current context

    在Unity場(chǎng)景中,在進(jìn)行build操作時(shí)出現(xiàn)這種報(bào)錯(cuò),導(dǎo)致資源bundle無法正常生成,出現(xiàn)以下問題: error CS0103: The name \\\'AssetDatabase\\\' does not exist in the current context error CS0234: The type or namespace name \\\'AssetDatabase\\\' does not exist in the namespace \\\'UnityEditor\\\' (are you missing an assembly reference?) ps :上面兩種

    2023年04月09日
    瀏覽(20)
  • npm WARN cli npm vxxx does not support Node.js vxxx. This version of npm supports the following

    npm 與 node 的版本不匹配,如果不想切換node,將npm卸載再安裝即可 npm與node版本匹配查看 卸載npm npm uninstall npm -g 安裝指定版本的npm npm install npm@{版本號(hào)} -g 示例: npm install npm@5.6.0 -g 安裝完成之后,使用命令查看版本 npm --version 建議不要使用cnpm安裝,會(huì)有各種莫名其妙的bug出

    2024年02月04日
    瀏覽(47)
  • 【報(bào)錯(cuò)解決】ERROR: pip‘s dependency resolver does not currently take into account all the packages

    【報(bào)錯(cuò)解決】ERROR: pip‘s dependency resolver does not currently take into account all the packages

    使用pip安裝 某些包時(shí),報(bào)錯(cuò): ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. spyder 5.1.5 requires pyqt55.13, which is not installed. spyder 5.1.5 requires pyqtwebengine5.13, which is not installed. conda-repo-cli 1.0.4

    2024年02月03日
    瀏覽(36)
  • 阿里云服務(wù)器安裝寶塔面板時(shí)候出現(xiàn)ERROR: pip‘s dependency resolver does not currently take into account......

    阿里云服務(wù)器安裝寶塔面板時(shí)候出現(xiàn)ERROR: pip‘s dependency resolver does not currently take into account......

    阿里云ECS服務(wù)器安裝寶塔面板,但是顯示安裝成功,端口也確定開放,訪問寶塔面板失敗,然后仔細(xì)查看了安裝過程,發(fā)現(xiàn)在安裝時(shí)出現(xiàn)了錯(cuò)誤,所以針對(duì)這個(gè)安裝錯(cuò)誤進(jìn)行解決。 錯(cuò)誤代碼顯示: ERROR: pip’s dependency resolver does not currently take into account all the packages that are in

    2024年02月09日
    瀏覽(27)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

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

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包