OS: Manjaro
I installed npm and nodejs by this command: sudo pacman -S nodejs npm
after installation i have an error:
~]$ npm -v
node: error while loading shared libraries: libicui18n.so.67: cannot open shared object file: No such file or directory
~]$ node --version
node: error while loading shared libraries: libicui18n.so.67: cannot open shared object file: No such file or directory
How can i solve this problem?
Install nvm (Node Version Manager)
Load nvm
You can also add the above line in your environment file such as
.bashrc
so you won’t have to do it every time.Install Node.js and npm
Test your setup – open a new terminal and install a package using npm