Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install nvm ubuntu

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
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" # This loads nvm. Now you can use nvm
Comment

ubuntu install latest node with nvm

# lists all versions
nvm ls-remote

# installs the version you want (in this case version 14.0.0)
nvm install v14.0.0

# use the version that you installed as the default
nvm use v14.0.0
Comment

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 :: systemd version check 
Shell :: kill all processes by name cmd 
Shell :: how to setup git locally with ssh 
Shell :: git delete local commit 
Shell :: WSL 2 requires an update to its kernel component. 
Shell :: add github repo 
Shell :: import sql single table dump in postgres 
Shell :: how to find and replace a string in a file using shell script on mac 
Shell :: react lorem ipsum 
Shell :: android sha1 generate 
Shell :: redis start stop commands 
Shell :: install tor browser on kali linux 
Shell :: compress file in terminal 
Shell :: run tmux on startup 
Shell :: forever run python script 
Shell :: install jq windows 
Shell :: install wp-cli 
Shell :: angular install version 12 
Shell :: rename username ubuntu 20.04 
Shell :: npm install line awesome 
Shell :: why is gitlens not working on vscode 
Shell :: change hstr editor 
Shell :: aws ec2 swap 
Shell :: apache show active sites 
Shell :: remove user from sudo group 
Shell :: how to make ubuntu faster 
Shell :: get folder size linux 
Shell :: how to install modules from requirement.txt 
Shell :: create folder shortcut on desktop ubuntu 
Shell :: how to install protractor 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =