Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
brew npm install does not add /usr/local/share/npm/bin to the PATH #21627
Still, brew should add the npm binary directory (
This can be fixed by appending this to
This means that the user experience.... is less than optimal in this case. Any installation can be considered incomplete if the tool is not drectly available to the user as it should be. Maybe not the best comparision, but still, if I would compare brew with msi, is like having windows installers that install applications into programfiles without creating start-menu entries.
I am surprised about this decision especially from a product made for OS X, where end-to-end experience do matter a lot.
I am aware that a decision like this would not be made here, but I need to make this visible for people that may not see it. I already fixed the problem myself on my machine, that's not the point. The point is that everyone would have to do the same...
/usr/local/share/npm/bin is used if it already exists, but "fresh" installs of node will link npm-installed executables into /usr/local/bin.
So if you're willing to reinstall stuff, you can blow away the existing node/npm install (including /usr/local/share/npm).