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

admin2025-04-10  1

I just updated my ubuntu version recently and i keep getting this error whenever i run any node or npm mand. :

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.

I just updated my ubuntu version recently and i keep getting this error whenever i run any node or npm mand. :

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.

Share Improve this question asked Mar 11, 2019 at 8:17 Rohan GautamRohan Gautam 1451 silver badge10 bronze badges 5
  • Have you tried uninstalling Node and reinstalling it? – T.J. Crowder Commented Mar 11, 2019 at 8:19
  • @T.J.Crowder yes, i have. – Rohan Gautam Commented Mar 11, 2019 at 8:25
  • 1 That would be important information to put in the question, along with any other investigation and attempts to fix. – T.J. Crowder Commented Mar 11, 2019 at 8:26
  • 1 A search on the error turns up several pages and this SO question, which looks like it has the answer. It's also important to tell us what research you've done (such as searching on the error message) and why what you found didn't help. – T.J. Crowder Commented Mar 11, 2019 at 8:27
  • @T.J.Crowder Thank you for the advice. The answer you linked involved docker which im not working with. I'm also a beginner which is why i don't know how to remove/update libicui18n.so.62 when any npm/node mand is not working(due to the mentioned error). That's why I haven't found anything quite like what iI'm stuck on, or atleast not something i understand. – Rohan Gautam Commented Mar 11, 2019 at 9:46
Add a ment  | 

1 Answer 1

Reset to default 6

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.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1744257405a238382.html

最新回复(0)