How to install the latest unstable NodeJS (e.g. 0.11.xyz) on Ubuntu

I play the game with Koa and I need to launch the newest unstable version of NodeJS.

Is there a simple call apt-getor npmor even nodethat I can make to get the latest version of NodeJS?

+4
source share
2 answers

You must install NVM or another node version manager, for example n , which has fewer github stars , but it was released later, it can only be installed with npm: npm install -g nand it contains a simpler api.

( nvm install n. , nvm n.)

NVM install script:

`curl https://raw.githubusercontent.com/creationix/nvm/v0.20.0/install.sh | bash`

$ git clone creationix/nvm

$HOME/.zshrc, $HOME/.bashrc, $HOME/.profile:

$ source path/to/.nvm/nvm.sh   

NVM, node , , , .

:

 $ nvm install 0.8
 $ nvm install stable  
 $ nvm install unstable
 $ nvm install 0.9.21 
 $ nvm alias work 0.9.21 
 $ nvm alias legacy 0.8  

, stable unstable.

2014 :

  • v0.10.x stable.
  • v0.11.x unstable ( / === /).
  • v0.8.x legacy.
  • v0.9.21 work.

: nvm use alias

  • nvm use work 0.9.21, nvm use stable v0.10.x NVM , , .

: nvm ls-remote.

  • , .

node: nvm ls

NVM node : ~/.nvm, ~/.npm ~/.bower $ rm -rf

.

NVM , node $HOME/.nvm/, .nvm/bin , npm -g, $PATH.

nvm usage n usage .

+11

nvm stable unstable:

$ nvm install stable
$ nvm use stable
+1

Source: https://habr.com/ru/post/1545151/


All Articles