Issue
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?
Solution
Install nvm (Node Version Manager)
yay -S nvm
Load nvm
source /usr/share/nvm/init-nvm.sh
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
nvm -g install npm
Test your setup – open a new terminal and install a package using npm
$ nvm use stable $ nvm -g install browser-sync $ browser-sync start --server
Answered By - Gulshan Yadav Answer Checked By - Cary Denson (WPSolving Admin)