Created
October 18, 2014 10:10
-
-
Save attilagyorffy/9049f1b0f170eaac829a to your computer and use it in GitHub Desktop.
npm being reliable again
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ 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 |
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
downloads npm package version
1.4.24
, then when querying the version from the CLI it returns2.1.4
instead.