I just updated my ubuntu version recently and i keep getting this error whenever i run any node or npm command. :
node: error while loading shared libraries: libicui18n.so.62: cannot open shared object file: No such file or directory
Any help? this seems to be very recent and Ive spent a lot of time trying to figure this out.
1 Answer
Okay, to anyone who might encounter this.
sudo apt-get purge --auto-remove nodejs
and reinstalling did not work, because I had installed it using linuxbrew. So if you used linuxbrew during the install,
brew uninstall node
brew install node
works. This seems to have been caused due to a recent OS update(ubuntu), and this fixed it for me.