Sunteți pe pagina 1din 8

Install Node.

js
Installing Node.js using Node Version Manager (nvm)
Luca Sepe
Using Node Version Manager (nvm)
Software Craftsman, Solution Architect, Trainer
Install multiple self-contained
versions of Node.js without affecting
https://twitter.com/lucasepe/
https://github.com/lucasepe/
the entire system.
https://lucasepe.it/

Installing Node.js using Node Version Manager (nvm)

1 / 8
Download the nvm installation script

Installing Node.js using Node Version


curl -L https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh Manager (nvm)
-o install_nvm.sh

flag meaning Luca Sepe


-L Software Craftsman, Solution Architect, Trainer
follow redirects

-o install_nvm.sh name the file as install_nvm.sh


https://twitter.com/lucasepe/
https://github.com/lucasepe/
https://lucasepe.it/
Inspect the installation script to be sure that looks OK.

Installing Node.js using Node Version Manager (nvm)

2 / 8
Run the script

Installing
bash install_nvm.sh Node.js using Node Version Manager (nvm)

Luca
it will install the software into Sepe
~/.nvm
Software
it will also add someCraftsman, Solution
configuration to yourArchitect, Trainer
~/.profile file to enable tool

Source the ~/.profile file https://twitter.com/lucasepe/


so that your current session knows about the changes:
https://github.com/lucasepe/
source ~/.profile https://lucasepe.it/

Installing Node.js using Node Version Manager (nvm)

3 / 8
List all Node.js versions
Installing
nvm ls-remote
Node.js using Node Version Manager (nvm)
Luca Sepe
v0.1.14
v0.1.15 Software Craftsman, Solution Architect, Trainer
v0.1.16
...
... https://twitter.com/lucasepe/
v13.10.1
-> v13.11.0
https://github.com/lucasepe/
https://lucasepe.it/

Installing Node.js using Node Version Manager (nvm)

4 / 8
Install a specific version

nvm install 13.11.0

Installing Node.js
Use a specific versionusing Node Version Manager (nvm)
Luca Sepe
nvm use 13.11.0
Software Craftsman, Solution Architect, Trainer
usually, nvm will use the most recently installed version
https://twitter.com/lucasepe/
https://github.com/lucasepe/
Check which version you’re currently using
https://lucasepe.it/

nvm current

Installing Node.js using Node Version Manager (nvm)

5 / 8
Installing Node.js using Node Version Manager (nvm)
Removing Node.js Luca Sepe
Software Craftsman, Solution Architect, Trainer

https://twitter.com/lucasepe/
https://github.com/lucasepe/
https://lucasepe.it/

Installing Node.js using Node Version Manager (nvm)

6 / 8
The version you would like to remove is not the current
active version

nvm uninstall 13.11.0


Installing Node.js using Node Version Manager (nvm)
replace 13.11.0 with the version you would like to remove
Luca Sepe
Software Craftsman, Solution Architect, Trainer
The version you would like to remove is the current active
version https://twitter.com/lucasepe/
https://github.com/lucasepe/
you must first deactivate nvm to enable your changes
https://lucasepe.it/

nvm deactivate

Installing Node.js using Node Version Manager (nvm)

7 / 8
Thank you

{twitter.com, github.com, speakerdeck.com} / lucasepe


Installing Node.js using Node Version Manager (nvm)
Become a patron and unlock more slides ready to use for learning or presenting
Luca Sepe
how to craft custom software using the most modern technologies and
Software Craftsman, Solution Architect, Trainer
programming languages
https://twitter.com/lucasepe/
how to use the best available free commandline tools to speed up and
automate your daily workhttps://github.com/lucasepe/
https://lucasepe.it/

https://www.patreon.com/lucasepe

Installing Node.js using Node Version Manager (nvm)

8 / 8

S-ar putea să vă placă și