mxcl/homebrew — Issue #9424: segmentation fault installing npm with node v0.6.6 installed with homebrew
Author: stepheneb
Created: 2012-01-04 17:59:06+00:00
State: open

On Mac OSX 10.6.8 I'm getting a segmentation fault installing npm with node v0.6.6 installed with homebrew.

$ 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 54223 0 --:--:-- --:--:-- --:--:-- 108k
tar=/usr/bin/tar
version:
bsdtar 2.6.2 - libarchive 2.6.2
install npm@1.1
fetching: http://registry.npmjs.org/npm/-/npm-1.1.0-beta-7.tgz
npm-install-27918.sh: line 302: 27949 Segmentation fault "$node" node_modules/semver/bin/semver -v "$node_version" -r "$req"
You need node to run this program.
node --version reports: v0.6.6
Please upgrade node before continuing.
It failed

see more details in ssue here: https://github.com/isaacs/npm/issues/1987