node and sudo: now kiss

1 · Christian · Jan. 19, 2014, 11:02 p.m.
Getting permission errors when installing a module? Are 'sudo: node: command not found' errors taking away your precious sleeping hours? Remove any trace of node on your system, and reinstall it. It will suit your pain: echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc . ~/.bashrc mkdir ~/local && ~/node-latest-install && ~/node-latest-install curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 ./configure --prefix=~/local && make install curl https://npmjs.org/inst...