node: error while loading shared libraries: libicui18n.so.62: cannot open shared object file: No such file or directory

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.

5

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.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like