Skip to content

Instantly share code, notes, and snippets.

@soulmachine
Last active April 30, 2020 07:04
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 soulmachine/cf2a68000e0138e8a93fd86a9a631e06 to your computer and use it in GitHub Desktop.
Save soulmachine/cf2a68000e0138e8a93fd86a9a631e06 to your computer and use it in GitHub Desktop.
Install NodeJS on Debian 10
adduser node
usermod -aG sudo node

Create a new file /etc/sudoers.d/node:

node ALL=(root) NOPASSWD:ALL

sudo apt update sudo apt install nodejs npm

curl -sL https://deb.nodesource.com/setup_14.x | sudo bash - sudo apt-get install -y nodejs sudo apt-get install gcc g++ make

sudo npm install ts-node typescript jest pm2 -g

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