Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

nvm linux

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
Comment

nvm commands

nvm arch [32|64]: Show if node is running in 32 or 64 bit mode. Specify 32 or 64 to override the default architecture.
nvm current: Display active version.
nvm install <version> [arch]: The version can be a specific version, "latest" for the latest current version, or "lts" for the most recent LTS version. Optionally specify whether to install the 32 or 64 bit version (defaults to system arch). Set [arch] to "all" to install 32 AND 64 bit versions. Add --insecure to the end of this command to bypass SSL validation of the remote download server.
nvm list [available]: List the node.js installations. Type available at the end to show a list of versions available for download.
nvm on: Enable node.js version management.
nvm off: Disable node.js version management (does not uninstall anything).
nvm proxy [url]: Set a proxy to use for downloads. Leave [url] blank to see the current proxy. Set [url] to "none" to remove the proxy.
nvm uninstall <version>: Uninstall a specific version.
nvm use <version> [arch]: Switch to use the specified version. Optionally use latest, lts, or newest. newest is the latest installed version. Optionally specify 32/64bit architecture. nvm use <arch> will continue using the selected version, but switch to 32/64 bit mode. For information about using use in a specific directory (or using .nvmrc), please refer to issue #16.
nvm root <path>: Set the directory where nvm should store different versions of node.js. If <path> is not set, the current root will be displayed.
nvm version: Displays the current running version of NVM for Windows.
nvm node_mirror <node_mirror_url>: Set the node mirror.People in China can use https://npmmirror.com/mirrors/node/
nvm npm_mirror <npm_mirror_url>: Set the npm mirror.People in China can use https://npmmirror.com/mirrors/npm/
    
# run vscode as administrator
nvm on
nvm use v16.14.2
 
    
    
Comment

nvm command

export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
Comment

PREVIOUS NEXT
Code Example
Shell :: how to access the local machine using WSL 
Shell :: quit nano 
Shell :: instal ansible centos 7 
Shell :: static address raspberry 
Shell :: powershell regex 
Shell :: clear git bash window 
Shell :: pull all remote branch into new local 
Shell :: what to do with the git config 
Shell :: selinux 
Shell :: gnu octave ubuntu 20.04 
Shell :: git bring back deleted branch from local 
Shell :: jenkins as docker container 
Shell :: npm install from git 
Shell :: install virtualbox linux 
Shell :: create fish alias 
Shell :: docker-compose mongodb replica - init replica 
Shell :: heroku docker 
Shell :: gitignore specific file 
Shell :: view memory usage linux 
Shell :: how to install specific version of software on mac using brew 
Shell :: copy branch to master 
Shell :: how to install path adb 
Shell :: ubuntu adding a monitor 
Shell :: bash change keymap 
Shell :: repo tool depth 
Shell :: popular git command 
Shell :: run specific logrotate 
Shell :: powershell get all unlinked gpo 
Shell :: linux convert to md5 
Shell :: ERROR: for build_env Cannot create container for service build_env: create .: volume name is too short, names should be at least two alphanumeric characters 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =