在arch linux中安装nodejs时出错

时间:2016-05-12 08:00:19

标签: linux node.js

好的,我刚刚使用pacman在archlinux上重新安装了nodejs包。同样的命令是 autolayout。现在,当我试图运行相同的时候我得到错误

sudo pacman -S nodejs npm这几乎意味着libicu要么不存在,要么没有正确的版本。我面临的问题是它不存在于pacman中。我试过了 node: error while loading shared libraries: libicui18n.so.57:,返回无法找到包。解决此问题的正确方法是什么。仅供参考:只是一个注释,我宁愿不从源代码安装,也喜欢使用pacman。如果您需要知道任何其他输出,请在下方发表评论并告知您相同的信息。

我目前正在使用manjaro i3全新安装。

2 个答案:

答案 0 :(得分:0)

你使用过测试报告吗?

If you enabled testing repositories, but later on decided to disable them, you should:

    Remove (comment out) them from /etc/pacman.conf
    Perform a # pacman -Syuu to "rollback" your updates from these >repositories.

The second item is optional, but keep it in mind if you notice any problems.

您也可以安装稳定版本:pacman -S core/icu

答案 1 :(得分:0)

此错误是由于安装了节点js和npm软件包模块而导致系统不支持的缺少软件包而导致的,请尝试以下操作:

$ sudo pacman -Rsc -n nodejs
$ sudo pacman -Sy nodejs
$ sudo pacman -Sy npm