-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Conversation
Yes! This is the ideal solution I originally wanted. I'll be testing this for sure. |
Install npm to the expected location using the upstream tarball. This should make everyone happier. Closes #27479.
Ping @jacknagel @adamv @mistydemeo @asparagui for any objections. |
Apologies in advance for the noob question, but what needs done to make sure we've reached this setup in order to test? I uninstalled npm (with I'm on Homebrew 43b7f5b. |
git reset --hard origin/master
brew uninstall node
rm -rf $(brew --prefix)/lib/node_modules
brew pull 28075
brew install node --with-npm
npm update -g |
I followed your instructions to test the formula and so far so good, no issues. I should mention that nothing breaks if |
You can manually downgrade the URL in the formula to 1.4.5 and you'll see it upgrades to 1.4.6 on installation. |
Gonna pull this relatively shortly if there are no problems/objections. |
Didn't think to do that. Thanks for the tip. Edit: Confirmed! For the first time in a year I think node and npm are working as expected after installing from brew :D Thanks for all your work on this. I can't express how appreciative my team and I are; makes things much simpler for us. |
Beautiful. Thanks for the additional instruction, @MikeMcQuaid. I would not have been able to pull that off otherwise. |
Merged in f900829. |
Hi @MikeMcQuaid, is there a way to get on this formula without |
npm -g ls 2>/dev/null | grep '^[└├]' | grep -v npm | cut -f2- -d" " | cut -f1 -d@ | tr '\n' ' ' And you get a list to copy & later to paste to |
Cool that works, thanks @mzgol |
Thanks @MikeMcQuaid! |
Ref. Homebrew/legacy-homebrew#28075. Closes mathiasbynens#362. Conflicts: Brewfile
Now that the `npm` related issue (see: Homebrew/legacy-homebrew#27479) has been fixed (see: Homebrew/legacy-homebrew#28075), revert back to using `Homebrew` to install `Node.js` and `npm` on OS X.
Install
npm
to the expected location using the upstream tarball. This should make everyone happier.This means Homebrew doesn't really manage
npm
any more but does install it. This is treated similarly to how we handlepip
and means thatnpm
can upgrade itself.Closes #27479.