Skip to content

Instantly share code, notes, and snippets.

@Kunsi
Created April 24, 2017 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kunsi/039892796d3355ecc08659c1a7ca3edb to your computer and use it in GitHub Desktop.
Save Kunsi/039892796d3355ecc08659c1a7ca3edb to your computer and use it in GitHub Desktop.
curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
$ cat nodesource.sh | sudo bash -
## Installing the NodeSource Node.js v4.x LTS Argon repo...
## Populating apt-get cache...
+ apt-get update
Hit http://ftp.uni-kl.de sid InRelease
Get:1 http://ftp.uni-kl.de sid/main Sources/DiffIndex [27.9 kB]
Get:2 http://ftp.uni-kl.de sid/non-free Sources/DiffIndex [27.8 kB]
Get:3 http://ftp.uni-kl.de sid/main amd64 Packages/DiffIndex [27.9 kB]
Get:4 http://ftp.uni-kl.de sid/non-free amd64 Packages/DiffIndex [27.8 kB]
Get:5 http://ftp.uni-kl.de sid/main Translation-en/DiffIndex [27.9 kB]
Get:6 http://ftp.uni-kl.de sid/non-free Translation-en/DiffIndex [27.8 kB]
Fetched 167 kB in 1s (114 kB/s)
Reading package lists... Done
## Installing packages required for setup: apt-transport-https lsb-release...
+ apt-get install -y apt-transport-https lsb-release > /dev/null 2>&1
## Confirming "jessie" is supported...
+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_4.x/dists/jessie/Release'
## Adding the NodeSource signing key to your keyring...
+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
OK
## Creating apt sources list file for the NodeSource Node.js v4.x LTS Argon repo...
+ echo 'deb https://deb.nodesource.com/node_4.x jessie main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_4.x jessie main' >> /etc/apt/sources.list.d/nodesource.list
## Running `apt-get update` for you...
+ apt-get update
Hit:1 http://ftp.uni-kl.de/debian sid InRelease
Get:2 https://deb.nodesource.com/node_4.x jessie InRelease [4634 B]
Get:3 https://deb.nodesource.com/node_4.x jessie/main Sources [763 B]
Get:4 https://deb.nodesource.com/node_4.x jessie/main amd64 Packages [962 B]
Fetched 6359 B in 0s (16.7 kB/s)
Reading package lists... Done
## Run `apt-get install nodejs` (as root) to install Node.js v4.x LTS Argon and npm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment