Skip to content

Instantly share code, notes, and snippets.

@jorgeguberte
Forked from barroso/nodeInstallUbuntu
Created October 1, 2011 14:53
Show Gist options
  • Save jorgeguberte/1256139 to your computer and use it in GitHub Desktop.
Save jorgeguberte/1256139 to your computer and use it in GitHub Desktop.
Instalação nodejs no ubuntu
#caso não tenha
sudo apt-get install git
sudo apt-get install curl python libssl-dev
mkdir ~/nodejs/
cd ~/nodejs/
git clone git://github.com/joyent/node.git
#versão
git checkout v0.4.12
./configure --prefix=/opt/node # Aqui configuramos o caminho da instalacao do node
make -j2 # Este comando configura o num. de comandos que sao executados em paralelo
make install
echo 'export PATH=/opt/node/bin:$PATH' >> ~/.profile
echo 'export NODE_PATH=/opt/node:/opt/node/lib/node_modules' >> ~/.profile
source ~/.profile
#npm para o NodeJS, instalação de modulos
curl http://npmjs.org/install.sh | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment