Skip to content

Instantly share code, notes, and snippets.

@pokisin
Last active March 7, 2018 16:34
Show Gist options
  • Save pokisin/21360921df1a97b0cd89cfc1fb727d9e to your computer and use it in GitHub Desktop.
Save pokisin/21360921df1a97b0cd89cfc1fb727d9e to your computer and use it in GitHub Desktop.
Instalar Node js en servidor

Primero instalaremos el curl en el servidor

sudo apt-get install curl

Node V9

curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs

Node V8

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

Para la herramienta de compilación

sudo apt-get install -y build-essential

For Node.js v4

# curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
# sudo apt-get install -y nodejs

Alternatively, for Node.js v5:

# curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
# sudo apt-get install -y nodejs

UPDATE Node.js v6:

# curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
# sudo apt-get install -y nodejs

UPDATE Node.js v7:

# curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
# sudo apt-get install -y nodejs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment