Skip to content

Instantly share code, notes, and snippets.

@mroth
Created October 25, 2011 23:00
Show Gist options
  • Save mroth/1314677 to your computer and use it in GitHub Desktop.
Save mroth/1314677 to your computer and use it in GitHub Desktop.
npm install script puts stuff in wrong directory
$ brew --version
0.8
$ which node
/usr/local/bin/node
$ node -v
v0.4.12
$ ls -l `which node`
lrwxr-xr-x 1 mroth staff 30 Oct 25 18:55 /usr/local/bin/node -> ../Cellar/node/0.4.12/bin/node
$ curl http://npmjs.org/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7147 100 7147 0 0 19194 0 --:--:-- --:--:-- --:--:-- 82149
tar=/usr/bin/tar
version:
bsdtar 2.8.3 - libarchive 2.8.3
Installing without make. This may fail.
fetching: http://registry.npmjs.org/npm/-/npm-1.0.102.tgz
0.4.12
1.0.102
cleanup prefix=/usr/local
altprefix=/usr/local/Cellar/node/0.4.12
All clean!
/usr/local/Cellar/node/0.4.12/bin/npm -> /usr/local/Cellar/node/0.4.12/lib/node_modules/npm/bin/npm-cli.js
/usr/local/Cellar/node/0.4.12/bin/npm_g -> /usr/local/Cellar/node/0.4.12/lib/node_modules/npm/bin/npm-cli.js
/usr/local/Cellar/node/0.4.12/bin/npm-g -> /usr/local/Cellar/node/0.4.12/lib/node_modules/npm/bin/npm-cli.js
[email protected] /usr/local/Cellar/node/0.4.12/lib/node_modules/npm
It worked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment