install node js ubuntu
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install nodejs
# Check node version
node -v
# v13.9.0
# Also, check the npm version
npm -v
# 6.13.7
install node js ubuntu
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install nodejs
# Check node version
node -v
# v13.9.0
# Also, check the npm version
npm -v
# 6.13.7
how to install node modules
npm install -g node-modules
install nodejs on ubuntu
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install nodejs
node -v #to check if its installed
node install ubuntu
# Through nodesource
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt install nodejs
install node in nvm
// Ex:
nvm install v12.13.1
INSTALL NODE JS
1.Enable the NodeSource repository by running the following curl command as a user with sudo privileges :
$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
The command will add the NodeSource signing key to your system, create an apt sources repository file, install all necessary packages and refresh the apt cache.
If you need to install another version, for example 14.x, just change setup_12.x with setup_14.x
2. Once the NodeSource repository is enabled, install Node.js and npm by typing:
$ sudo apt install nodejs
The nodejs package contains both the node and npm binaries.
3. Verify that the Node.js and npm were successfully installed by printing their versions:
$ node --version
v12.16.3
$ npm --version
6.14.4
Uninstall Node.js
$ sudo apt remove nodejs npm
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us