Difference between revisions of "Nvm"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
* https://github.com/nvm-sh/nvm
 
* https://github.com/nvm-sh/nvm
  
Installation:
+
== Installation ==
 
* macOS: <code>[[brew install nvm]]</code>
 
* macOS: <code>[[brew install nvm]]</code>
 
* Ubuntu:  
 
* Ubuntu:  
  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 ==
 
* <code>[[nvm install 14]]</code>
 
* <code>[[nvm install 14]]</code>
 +
* <code>[[nvm use 18]]</code>
 
* <code>[[nvm use 14]]</code>
 
* <code>[[nvm use 14]]</code>
 
* <code>[[nvm --help]]</code>
 
* <code>[[nvm --help]]</code>

Latest revision as of 10:28, 5 July 2023

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

Installation[edit]

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[edit]

Related[edit]

  • Never Mind (nvm)
  • npm

See also[edit]

Advertising: