Skip to content

Instantly share code, notes, and snippets.

@opi
Last active May 7, 2024 22:18
Show Gist options
  • Save opi/1dce5be10717183ccc03 to your computer and use it in GitHub Desktop.
Save opi/1dce5be10717183ccc03 to your computer and use it in GitHub Desktop.
How to install nodejs on Debian Jessie

How to install nodejs on Debian Jessie

Pre-requisites

apt install apt-transport-https curl

Add GPG key for signing packages

curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -

Create additionnal sources.list

echo "deb https://deb.nodesource.com/node_6.x jessie main" > /etc/apt/sources.list.d/nodesource.list
echo "deb-src https://deb.nodesource.com/node_6.x jessie main" >> /etc/apt/sources.list.d/nodesource.list

Note that the version 6.x is current LTS. You can change it to 7.x for latest node version. Look at LTS schedule for more information.

Update packages cache and install

apt update && apt install nodejs
@PremKolar
Copy link

thanks!

@duberti
Copy link

duberti commented Mar 26, 2022

thanks!

@kadeillianbiproxi
Copy link

thanks!

@gllsrssx
Copy link

gllsrssx commented May 7, 2024

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment