node version management

Nvm carried out using a multi-node version management

nvm with the virtualenv rvm Python and Ruby are similar.
NVM (Node Version Manager, Node Manager multi-version) is a generic term for which there are many different implementations. Usually we say nvm means https://github.com/creationix/nvm or https://github.com/visionmedia/n. Both of these tools are written using the shell.

n

N some individuals feel more simple, it is only a script file.

installation

If the npm already installed, you can directly execute the command to install n:

$ npm install -g n

Direct access to the source code or the installation:

$ git clone https://github.com/visionmedia/n.git
$ cd n
$ [sudo] make install

use

N directly run command to view all the installed version.

$ n

N be installed to run the command specified node version. version can be stable (latest stable version), latest (latest edition) or specific version number.

$ n stable
install : v0.10.24
mkdir : /usr/local/n/versions/0.10.24
fetch : http://nodejs.org/dist/v0.10.24/node-v0.10.24-linux-x64.tar.gz

Specified version will be installed in / usr / local / n / versions directory.

Run n rm command to delete the specified node is already installed version.

N use the Run command to select the specified version of the node.

NVM

installation

$ git clone https://github.com/creationix/nvm.git ~/.nvm
$ source ~/.nvm/nvm.sh

use

View installed version:

$ nvm ls

View version that can be installed:

$ nvm ls-remote

Install the specified version:

$ nvm install <version>

Specified version will be directly installed in the directory nvm program is located.

Delete the specified version:

$ nvm uninstall <version>

Using the selected version:

$ nvm use <version>

Guess you like

Origin blog.csdn.net/memedadexixaofeifei/article/details/88207657
Recommended