首页 > 编程语言 >Mac air node.js重新安装版本,删除node文件后报错,报错信息和解决办法

Mac air node.js重新安装版本,删除node文件后报错,报错信息和解决办法

时间:2024-03-15 23:00:11浏览次数:12  
标签:node 重新安装 lib libicui18n.73 报错 usr dylib local

1、在终端执行:node -v

      dyld[13110]: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.73.dylib

      Referenced from: /usr/local/Cellar/node@16/16.20.2/bin/node
     Reason: tried: '/usr/local/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/usr/local/lib/libicui18n.73.dylib' (no such file), '/usr/lib/libicui18n.73.dylib' (no such file)
     Abort trap: 6

  npm -v

    dyld[16077]: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.73.dylib

    Referenced from: /usr/local/Cellar/node@16/16.20.2/bin/node
    Reason: tried: '/usr/local/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/usr/local/lib/libicui18n.73.dylib' (no such file), '/usr/lib/libicui18n.73.dylib' (no such file)
   Abort trap: 6

 

2、 brew uninstall --force icu4c

3、 brew install icu4c

4、 brew uninstall --force node

5、 brew reinstall node@16

6、 node@16 has been deprecated because it is not supported upstream!

7、 brew reinstall node@18

8、 brew cleanup node@18

9、 brew reinstall node@18

10、 /usr/local/opt/node@18/bin/node -v
v18.19.1

11、 echo 'export PATH="/usr/local/opt/node@18/bin:$PATH"' >> ~/.zshrc

12、 source ~/.zshrc

13、 node -v
显示版本信息

标签:node,重新安装,lib,libicui18n.73,报错,usr,dylib,local
From: https://www.cnblogs.com/Aaron-yellow/p/18076440

相关文章

  • ssm/php/node/python高校思政课程案例库系统
    本系统(程序+源码)带文档lw万字以上  文末可领取本课题的JAVA源码参考系统程序文件列表系统的选题背景和意义选题背景:随着信息技术的飞速发展,传统的高校思政课程教学模式已经难以满足当代大学生的需求。面对新时代的学生群体,他们普遍具有较高的信息素养和自主学习能力,因......
  • 04ifconfig命令报错:command not found 解决方法
    在Linux系统下,当要查询当前主讲的ip地址时,输入命令ifconfig,但是却出了commandnotfound的提示ifconfig命令失败,说明没有将ipconfig命令配置到环境变量,需要进行如下配置使用管理员权限运行以下命令vi/etc/profile#在profile文件里面PATH=$PATH:/sbinexportPATH=$......
  • OpenHarmony升級4.0后,编译报错。
    1、Useexplicittypesinsteadof"any","unknown"(arkts-no-any-unknown)报错信息:ERROR:ArkTS:ERRORFile:.../WeatherRow.ets:99:12Useexplicittypesinsteadof"any","unknown"(arkts-no-any-unknown)错误代码:ForEac......
  • 连接MySQL报错,is not allowed to connect to this MySQL server
    问题描述:        本机装的MySQL数据库,本机可以正常连接,其他机器访问报错,isnotallowedtoconnecttothisMySQLserver,防火墙等其他策略均配置没问题。  解决方案:    出现该问题的原因是,MySQL数据库只允许自身所在的本机器连接,不允许远程连接。1、......
  • node.js服务器
    Node.js发布于2009年5月,由RyanDahl开发,是一个基于ChromeV8引擎的JavaScript运行环境,使用了一个事件驱动、非阻塞式I/O模型,[1]让JavaScript运行在服务端的开发平台,它让JavaScript成为与PHP、Python、Perl、Ruby等服务端语言平起平坐的脚本语言。简单来说,就是让原本运行在客户端......
  • Linux - 报错“Address already in use”解决方案
    报"Addressalreadyinuse",如下图所示:错误原因:某程序正在使用端口。(这里我使用的是端口“8888”)可以通过命令查看所有正在使用的端口:netstat-tunllp 解决方案1.找到占用该端口的进程号使用命令:sudonetstat-anp|grep"8888"(端口号)可以看到进程号为8888的serv......
  • SSH登录失败报错Permission denied (publickey)的解决方法
    SSH(SecureShell)是一种加密的网络协议,用于在网络上安全地传输数据。它被广泛用于远程登录和执行命令。然而,有时候当我们尝试使用SSH登录时,可能会遇到错误消息Permissiondenied(publickey)导致登录失败。这种情况可能由多种原因引起。在本文中,我们将探讨导致SSH登录失败的......
  • 【已解决】报错 NVIDIA-SMI has failed because it couldn‘t communicate with the N
    在重装系统ubuntu20.4.6之后,运行程序的时候无法启动nvidia显卡,然后输入nvidia-smi报错hasfailedbecauseitcouldn‘tcommunicatewiththeNVIDIAdriver,在网上查看许多解决方案也没有解决,其中这篇文章(https://www.zhihu.com/question/474222642)写的较为详细,但是我试过依旧无......
  • 【rust】《处理报错Cannot find a libtorch install, you can either:》
    在学习rust的tch-rs框架的时候,引入依赖并运行小demo的时候报错了;错误信息如下:报错信息Cannotfindalibtorchinstall,youcaneither:-InstalllibtorchmanuallyandsettheLIBTORCHenvironmentvariabletoappropriatepath.-Useasystemwideinstallin/us......
  • jumserver-master版本 lina组件启动报错
    node-vv16.15.1 npm-v8.11.0yarn-v1.22.22 yarnserveyarnrunv1.22.22$vue-cli-serviceserveINFOStartingdevelopmentserver...10%building2/2modules0activeERRORSyntaxError:Cannotuseimportstatementoutsideamodule/opt/lina-ma......