Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of error reporting in node environment after installing yarn with brew

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article focuses on "how to solve the problem of error reporting in the node environment after using brew to install yarn", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "how to solve the problem of error reporting in the node environment after installing yarn using brew"!

After installing yarn using brew Node environment error dyld: Library not loaded: / usr/local/opt/icu4c/lib/libicui18n.60.dylibReferenced from: / usr/local/opt/node@8/bin/nodeReason: image not found solution brew list # View installed software brew uninstall-- ignore-dependencies node icu4c # Uninstall Software brew uninstall nvm # Uninstall nvmbrew uninstall node [@ 8] (https://my.oschina.net/u/147515) # Uninstall node [@ 8] ( Https://my.oschina.net/u/147515)brew uninstall yarn # Uninstall the yarn installation software brew install nvm== > CaveatsPlease note that upstream has asked us to make explicit managingnvm via Homebrew is unsupported by them and you should check anyproblems against the standard nvm install method prior to reporting.You should create NVM's working directory if it doesn't exist: mkdir ~ / .nvmAdd the following to ~ / .zshrc or your desired shellconfiguration 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_completionYou can set $NVM_DIR to any location, but leaving it unchanged from/usr/local/opt/nvm will destroy any nvm-installed Node installationsupon 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

According to the prompts, create files and configure parameters

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

Then use nvm to install node

~ nvm list ➜An iojs-> N default A (default) node-> stable (- > N default A) (default) unstable-> N unstable 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-v5.6.0 ➜~ so far, I believe you have a deeper understanding of "how to solve the problem of error reporting in the node environment after using brew to install yarn". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report