Difference between revisions of "Nvm"

From wikieduonline
Jump to navigation Jump to search
Line 8: Line 8:
 
  sudo apt install curl &&  curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
 
  sudo apt install curl &&  curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
 
  [[nvm install node]]
 
  [[nvm install node]]
 +
 +
 +
export NVM_DIR="$HOME/.nvm"
 +
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
 +
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
  
 
== Commands ==
 
== Commands ==

Revision as of 17:35, 16 August 2022

wikipedia:nvm Node Version Manager (nvm) is a version manager for Node.js

Installation

sudo apt install curl &&  curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
nvm install node


export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

Commands

Related

  • Never Mind (nvm)
  • npm

See also

Advertising: