Skip to content

Instantly share code, notes, and snippets.

@ferdousulhaque
Created January 31, 2023 16:58
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 ferdousulhaque/5643855a7fbcf91527c09f2b3fc1c733 to your computer and use it in GitHub Desktop.
Save ferdousulhaque/5643855a7fbcf91527c09f2b3fc1c733 to your computer and use it in GitHub Desktop.
These are the steps for installing nodejs on a public VPS for Node Applications
wget https://nodejs.org/download/release/v16.19.0/node-v16.19.0-linux-x64.tar.gz
tar xvf node-v16.19.0-linux-x64.tar.gz
mv node-v16.19.0-linux-x64 nodejs
mkdir ~/bin
cp nodejs/bin/node ~/bin
cd ~/bin
ln -s ../nodejs/lib/node_modules/npm/bin/npm-cli.js npm
node --version
npm --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment