Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

nvm install ubuntu

## Using curl
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
## Using wget 
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash

##After install, load the NVM config in your shell
## ~/.bashrc or ~/.zshrc
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm
Comment

ubuntu install nvm

#First install the script and run it

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh| bash

#then set VARIABLE and PATH in Bash to load nvm
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"

#verify installation
command -v nvm

#install nodeJs
nvm install --lts

#this command will install long time support(lts) nodeJs also npm with it 
Comment

how to install nvm in ubuntu

$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash# Alternatively $ wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
Comment

how to install nvm in ubbntu

$ export NVM_DIR="$HOME/.nvm" && (
    git clone https://github.com/nvm-sh/nvm.git "$NVM_DIR"
    cd "$NVM_DIR"
    git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
  ) && . "$NVM_DIR/nvm.sh"
Comment

PREVIOUS NEXT
Code Example
Shell :: bash for loop parallel 
Shell :: apache2 install ubuntu 20.04 
Shell :: how to install fish in debian 
Shell :: git pull from previous commit 
Shell :: tar zip multiple files 
Shell :: git https to ssh 
Shell :: Id field in Model Django 
Shell :: django.core.exceptions.ImproperlyConfigured: Requested setting ROOT_URLCONF, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. 
Shell :: delete commit 
Shell :: install termius ubuntu 
Shell :: until loop bash 
Shell :: delete branch github 
Shell :: Linux command line search and replace string in all files 
Shell :: deploy stack cloudformation cli 
Shell :: how to setup ubuntu for windows in visual studio code 
Shell :: pip install osgeo 
Shell :: remove mongo lock file from centos 7 
Shell :: powershell do while loop 
Shell :: docker build with args 
Shell :: how to use xampp localhost 
Shell :: linux chmod 
Shell :: como desfazer um git add . 
Shell :: Updating Packages in WSL 
Shell :: Related to anydesk not opening in ubuntu 
Shell :: angular cli disable auto reload 
Shell :: Closed INTERNAL ERROR: cannot create temporary directory 
Shell :: run mongodb locally 
Shell :: ubuntu upgrade certbot acme v2 
Shell :: powershell replace and rename file name 
Shell :: jupyter install not running on windows 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =