Skip to content

Instantly share code, notes, and snippets.

@attilagyorffy
Created October 18, 2014 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save attilagyorffy/9049f1b0f170eaac829a to your computer and use it in GitHub Desktop.
Save attilagyorffy/9049f1b0f170eaac829a to your computer and use it in GitHub Desktop.
npm being reliable again
➜ ember-client (1145-fix-cookie-auth) brew install node
==> Downloading http://nodejs.org/dist/v0.10.32/node-v0.10.32.tar.gz
Already downloaded: /Library/Caches/Homebrew/node-0.10.32.tar.gz
==> ./configure --prefix=/usr/local/Cellar/node/0.10.32 --without-npm
==> make install
==> Downloading https://registry.npmjs.org/npm/-/npm-1.4.24.tgz
Already downloaded: /Library/Caches/Homebrew/node--npm-1.4.24.tgz
==> make install
==> /usr/local/bin/npm install --global npm@latest --prefix /usr/local
🍺 /usr/local/Cellar/node/0.10.32: 1678 files, 19M, built in 2.2 minutes
➜ ember-client (1145-fix-cookie-auth) npm --version
2.1.4
@attilagyorffy
Copy link
Author

downloads npm package version 1.4.24, then when querying the version from the CLI it returns 2.1.4 instead.

@othiym23
Copy link

The Homebrew formula for Node is written to bootstrap with an old version of npm, and then install the newest stable version, which you can see it doing in the npm install --global npm@latest --prefix /usr/local. How is this unreliable? It seems pretty safe to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment