千家信息网

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

发表于:2024-10-24 作者:千家信息网编辑
千家信息网最后更新 2024年10月24日,本篇内容主要讲解"怎么解决使用brew安装yarn后node环境报错问题",感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习"怎么解决使用brew安装yarn后n
千家信息网最后更新 2024年10月24日怎么解决使用brew安装yarn后node环境报错问题

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

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

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

解决方法

brew list  # 查看安装的软件brew uninstall --ignore-dependencies node icu4c  # 卸载软件brew uninstall nvm  #卸载nvmbrew uninstall node[@8](https://my.oschina.net/u/147515)  #卸载node[@8](https://my.oschina.net/u/147515)brew uninstall yarn   #卸载 yarn安装软件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
  • 根据提示,创建文件,配置参数

       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环境报错问题"有了更深的了解,不妨来实际操作一番吧!这里是网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

环境 问题 软件 内容 方法 学习 实用 更深 兴趣 参数 实用性 实际 操作简单 文件 更多 朋友 网站 频道 提示 查询 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 新乡市浩瀚网络技术有限公司 数据库技术发展的主要阶段有 中国网络安全法导致外资撤离 哈理工哪个专业是网络安全 数据库表是哪个模式下的 现在学习软件开发哪个学校好 手机取证软件开发 网络安全的名词解释NAT 远程访问服务器上的dll 甘南天气预报软件开发 北京匡恩网络技术有限公司 鄂城驰云网络技术有限公司 长春网络技术服务质量保证 审批流数据库设计 社区网络安全活动周方案 软件开发服务费入账科目 爱迪尔门锁软件怎么连数据库 万方数据库可以下载外文文献 保险公司网络安全等级保护 破坏网络安全罪无棣 北京车智能互联网科技 租什么样的服务器能玩dnf 网络安全重要辩论 网络安全专题会主持词 安徽璞琅互联网科技有限公司 常熟管理软件开发职能 单位网络安全人才培养计划 网络安全领域视图 数据库中添加一行信息 下一代网络技术指的是什么
0