# take ownership of the folders that npm/node use # please don't do this if you don't know what it does! sudo chown -R $USER /usr/local/{share/man,bin,lib/node} # now just a pretty vanilla node install # let it use the default paths, but don't use sudo, since there's no need mkdir node-install curl http://nodejs.org/dist/node-v0.2.5.tar.gz | tar -xzf - -C node-install cd node-install/* ./configure make install # now the npm easy-install curl http://npmjs.org/install.sh | sh