怎么解决使用brew安装yarn后node环境报错问题

发布时间:2021-11-16 11:30:38 作者:iii
来源:亿速云 阅读:279

本篇内容主要讲解“怎么解决使用brew安装yarn后node环境报错问题”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“怎么解决使用brew安装yarn后node环境报错问题”吧!

使用brew 安装 yarn 之后 ,node环境报错

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

到此,相信大家对“怎么解决使用brew安装yarn后node环境报错问题”有了更深的了解,不妨来实际操作一番吧!这里是亿速云网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

推荐阅读:
  1. 升级mac系统后,brew报错,重装homebrew
  2. node-sass安装报错如何解决

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

brew yarn node

上一篇:复杂的数据需求的MySQL方案是怎样的

下一篇:Netty中怎么实现websocket发消息

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》