install npm on ubuntu 18.04 LTS
fisrt install nvm
after that check the installation script using nano:
nano install_nvm.sh
then run the script using bash command:
bash install_nvm.sh
then access nvm for using nvm command
source ~/.profile
chek node version on nvm using command
nvm ls-remote
then choose node version which we want
nvm install 10.16.1
choose for default node version
nvm alias default 10.16.1
then use the default of node using command:
nvm use default
```
console.log("HELLO WORLD");
```
fisrt install nvm
- curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh -o install_nvm.sh
after that check the installation script using nano:
nano install_nvm.sh
then run the script using bash command:
bash install_nvm.sh
then access nvm for using nvm command
source ~/.profile
chek node version on nvm using command
nvm ls-remote
then choose node version which we want
nvm install 10.16.1
choose for default node version
nvm alias default 10.16.1
then use the default of node using command:
nvm use default
```
console.log("HELLO WORLD");
```