欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

怎么解決使用brew安裝yarn后node環(huán)境報錯問題

本篇內(nèi)容主要講解“怎么解決使用brew安裝yarn后node環(huán)境報錯問題”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強(qiáng)。下面就讓小編來帶大家學(xué)習(xí)“怎么解決使用brew安裝yarn后node環(huán)境報錯問題”吧!

創(chuàng)新互聯(lián)建站是一家專業(yè)提供綏寧企業(yè)網(wǎng)站建設(shè),專注與網(wǎng)站建設(shè)、成都網(wǎng)站制作、H5網(wǎng)站設(shè)計、小程序制作等業(yè)務(wù)。10年已為綏寧眾多企業(yè)、政府機(jī)構(gòu)等服務(wù)。創(chuàng)新互聯(lián)專業(yè)網(wǎng)站設(shè)計公司優(yōu)惠進(jìn)行中。

使用brew 安裝 yarn 之后 ,node環(huán)境報錯

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib
Referenced from: /usr/local/opt/node@8/bin/node
Reason: image not found

解決方法

brew list  # 查看安裝的軟件
brew uninstall --ignore-dependencies node icu4c  # 卸載軟件
brew uninstall nvm  #卸載nvm
brew uninstall node[@8](https://my.oschina.net/u/147515)  #卸載node[@8](https://my.oschina.net/u/147515)
brew uninstall yarn   #卸載 yarn

安裝軟件
brew install nvm
==> Caveats
Please note that upstream has asked us to make explicit managing
nvm via Homebrew is unsupported by them and you should check any
problems against the standard nvm install method prior to reporting.

You should create NVM's working directory if it doesn't exist:

  mkdir ~/.nvm

Add the following to ~/.zshrc or your desired shell
configuration file:

  export NVM_DIR="$HOME/.nvm"
  [ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh"  # This loads nvm
  [ -s "/usr/local/opt/nvm/etc/bash_completion" ] && . "/usr/local/opt/nvm/etc/bash_completion"  # This loads nvm bash_completion

You can set $NVM_DIR to any location, but leaving it unchanged from
/usr/local/opt/nvm will destroy any nvm-installed Node installations
upon upgrade/reinstall.

Type `nvm help` for further information.

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
????  /usr/local/Cellar/nvm/0.34.0: 7 files, 141.7KB, built in 8 seconds
  • 根據(jù)提示,創(chuàng)建文件,配置參數(shù)

       mkdir ~/.nvm
    	Add the following to ~/.zshrc or your desired shell
      configuration file:
    
        export NVM_DIR="$HOME/.nvm"
        [ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh"  # This loads nvm
        [ -s "/usr/local/opt/nvm/etc/bash_completion" ] && . "/usr/local/opt/nvm/etc/bash_completion"  # This loads nvm bash_completion

  • 再使用nvm 安裝node

       ~ nvm list
      			N/A
      iojs -> N/A (default)
      node -> stable (-> N/A) (default)
      unstable -> N/A (default)
      nvm_list_aliases:36: no matches found: /Users/caonn/.nvm/alias/lts/*
      ?  ~ nvm install v8.11.2
      Downloading and installing node v8.11.2...
      Downloading https://nodejs.org/dist/v8.11.2/node-v8.11.2-darwin-x64.tar.xz...
      ######################################################################## 100.0%
      Computing checksum with shasum -a 256
      Checksums matched!
      Now using node v8.11.2 (npm v5.6.0)
      Creating default alias: default -> v8.11.2
      ?  ~ node -v
      v8.11.2
      ?  ~ npm -v
      5.6.0
      ?  ~

到此,相信大家對“怎么解決使用brew安裝yarn后node環(huán)境報錯問題”有了更深的了解,不妨來實際操作一番吧!這里是創(chuàng)新互聯(lián)網(wǎng)站,更多相關(guān)內(nèi)容可以進(jìn)入相關(guān)頻道進(jìn)行查詢,關(guān)注我們,繼續(xù)學(xué)習(xí)!

本文標(biāo)題:怎么解決使用brew安裝yarn后node環(huán)境報錯問題
文章出自:http://chinadenli.net/article16/iheodg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供域名注冊、自適應(yīng)網(wǎng)站、品牌網(wǎng)站建設(shè)、網(wǎng)站排名云服務(wù)器、企業(yè)網(wǎng)站制作

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

營銷型網(wǎng)站建設(shè)