Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error installing nodejs in arch linux

Tags:

linux

node.js

Okay so i just made a fresh install of nodejs package on archlinux using pacman. Command for the same was sudo pacman -S nodejs npm . Now when i tried to run the same i am getting error as

node: error while loading shared libraries: libicui18n.so.57: Which pretty much means that libicu is either not there or not the correct version. The problem that i am facing is that it is not there in pacman. I tried sudo pacman -S libicu, which returned not able to find the package. What is the right way to resolve this issue. FYI : just a note, i would prefer not to install from source and prefer using pacman for the same. If there is any other output that you need to know please comment below and will let you know about the same.

I am currently on manjaro i3 fresh install.

like image 572
georoot Avatar asked May 12 '16 08:05

georoot


1 Answers

Just found out, The name for package in arch linux is icu and not libicu. Once that is installed node will start working fine.

Update

After using node for quite sometime i realised that a better way to install node is using NVM. It would install both node and npm locally and you get the option to manage multiple version.Installation is as simple as

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash
like image 78
georoot Avatar answered Oct 04 '22 20:10

georoot