Photo of Gil Creque in a pink TV

Worm Icon H o w t o p o s s i b l y f i x y o u r n p m g l o b a l l y i n s t a l l e d b i n a r y n o t b e i n g f o u n d

🌱 seed
Topics Icon Dev Tools

This line in my ~/.npmrc file has been killing my sanity for longer than I want to admit.

prefix=/Users/myusername/.nvm/versions/node/v10.0.0

If your globally installed npm binaries are not being found it could be because somehow you have a prefix set like the one above. I’m using nvm and I could not figure this out. All I had to do was delete this line and my binaries were finally installing in to the correct directory. I slayed the beast just now thanks to this handy issue comment.