From 1aa2c3122c68f30a2e3a71b7e3ffdb83e1c502fb Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 17 Mar 2014 17:14:59 +0100 Subject: [PATCH] handle npm independent from brew installed node --- brew | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/brew b/brew index b5dfa67..fb44280 100755 --- a/brew +++ b/brew @@ -11,7 +11,7 @@ brew upgrade # Install what we need brew install git -brew install node +brew install node --without-npm brew install wget brew install gpg2 brew install mysql @@ -19,10 +19,5 @@ brew install imagemagick brew install GraphicsMagick brew install android -# fix for failing 'npm update' with brew installed node -# reference: https://github.com/Homebrew/homebrew/issues/22408#issuecomment-30812725 -for man in 1 3 5 7; do - ln -sf /usr/local/lib/node_modules/npm/man/man${man}/* /usr/local/share/man/man${man} -done - -ln -sf /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \ No newline at end of file +# Install npm on its own +curl -L https://npmjs.org/install.sh | sh \ No newline at end of file