Created
June 27, 2012 18:21
-
-
Save lancejpollard/3005832 to your computer and use it in GitHub Desktop.
Upgrade Node.js with Homebrew
This file contains hidden or 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
$ brew upgrade node | |
==> Upgrading node | |
==> Downloading http://nodejs.org/dist/v0.8.0/node-v0.8.0.tar.gz | |
######################################################################## 100.0% | |
==> ./configure --prefix=/usr/local/Cellar/node/0.8.0 --without-npm | |
==> make install | |
==> Caveats | |
Homebrew has NOT installed npm. We recommend the following method of | |
installation: | |
curl http://npmjs.org/install.sh | sh | |
After installing, add the following path to your NODE_PATH environment | |
variable to have npm libraries picked up: | |
/usr/local/lib/node_modules | |
==> Summary | |
/usr/local/Cellar/node/0.8.0: 79 files, 11M, built in 3.7 minutes | |
$ node -v | |
v0.8.0 | |
$ curl http://npmjs.org/install.sh | sh | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
101 7881 101 7881 0 0 20527 0 --:--:-- --:--:-- --:--:-- 41920 | |
tar=/usr/bin/tar | |
version: | |
bsdtar 2.6.2 - libarchive 2.6.2 | |
install [email protected] | |
fetching: http://registry.npmjs.org/npm/-/npm-1.1.32.tgz | |
0.8.0 | |
1.1.32 | |
cleanup prefix=/usr/local | |
All clean! | |
> [email protected] prepublish . | |
> npm prune ; make -j4 doc | |
sh: npm: command not found | |
make: Nothing to be done for `doc'. | |
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js | |
[email protected] /usr/local/lib/node_modules/npm | |
It worked | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice!