节点:加载共享库时出错:libicui18n.so.62:无法打开共享对象文件:没有这样的文件或目录

Roh*_*tam 3 javascript node.js npm

我最近刚刚更新了我的 ubuntu 版本,每当我运行任何节点或 npm 命令时,我都会收到此错误。:

node: error while loading shared libraries: libicui18n.so.62: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)

有什么帮助吗?这似乎是最近的事,我花了很多时间试图弄清楚这一点。

Roh*_*tam 5

好的,对于任何可能遇到这种情况的人。

sudo apt-get purge --auto-remove nodejs
Run Code Online (Sandbox Code Playgroud)

并且重新安装不起作用,因为我是使用linuxbrew安装的。因此,如果您在安装过程中使用了 linuxbrew,

brew uninstall node
brew install node
Run Code Online (Sandbox Code Playgroud)

作品。这似乎是由于最近的操作系统更新(ubuntu)引起的,这为我解决了这个问题。