DEV Community

Gil
Gil

Posted on • Originally published at gilcreque.blog on

How to possibly fix your npm globally installed binary not being found

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.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay