You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -88,6 +89,8 @@ Alternatively, you can use the custom install script:
88
89
curl -L https://git.io/n-install | bash
89
90
```
90
91
92
+
**Note:** if you are concerned about running a script downloaded from the web (as you should because [`curl | bash` might be dangerous](https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-bash-server-side/)), you can always download the script first, READ IT, and then run it locally...
93
+
91
94
If all goes well, you should now be able to use the `n` executable from your shell.
92
95
93
96
These are some of the commands you can run:
@@ -129,7 +132,7 @@ In summary, this is where `n` shines or falls short:
129
132
130
133
With more than 45 thousand stars on GitHub, [`nvm`](https://github.com/nvm-sh/nvm), which stands for "Node.js Version Manager" (no surprises!), is probably the most famous Node.js version manager currently available.
131
134
132
-
`nvm` works on any POSIX-compliant shell (`sh`, `dash`, `ksh`, `zsh`, `bash`, etc.) and it has been strongly tested against the following systems: unix, macOS, and windows WSL.
135
+
`nvm` works on any POSIX-compliant shell (`sh`, `dash`, `ksh`, `zsh`, `bash`, etc.) and it has been strongly tested against the following systems: unix, macOS, and windows WSL (if you are on Windows, you can also check out [`nvm-windows`](https://github.com/coreybutler/nvm-windows)).
133
136
134
137
The easiest way to install `nvm` on your system is to use the official installer script:
135
138
@@ -201,6 +204,8 @@ Finally, here are some pros and cons of `nvm`:
201
204
- 👍 You can run once off commands on a given version of Node.js without having to switch the entire system to that version.
202
205
- 👎 You might have to take a bit of time to go through the documentation and make sure you install it and use it correctly.
203
206
207
+
**Note**: if you like to use version managers like `n` or `nvm`, you can also check out [`volta.sh`](https://volta.sh/), another interesting alternative in this space, which defines itself as _"The Hassle-Free JavaScript Tool Manager"_.
208
+
204
209
205
210
## Install Node.js using the official installer
206
211
@@ -332,6 +337,8 @@ This way you can install third-party modules using `npm`, create your own script
332
337
333
338
This is the perfect environment for quick and dirty experiments.
334
339
340
+
Note, that you can also use Doccker as a full environment for development and not just for quick tests. Docker is actually great for keeping different Node.js version and other dependencies isolated on a per-project basis. Exploring this opportunity goes beyond the scope of this article, but there is ton of reference on the web on how you might use Docker for this.
341
+
335
342
336
343
## Node.js online
337
344
@@ -357,4 +364,9 @@ This concludes our list of ways to install Node.js. At this point, I hope you fe
357
364
358
365
If you enjoyed this article please consider sharing it and don't hesitate to reach out to me [on Twitter](https://twitter.com/loige). I am quite curious to find out what is your favourite way to install Node.js and why!
359
366
360
-
Until next time!
367
+
Until next time!
368
+
369
+
370
+
### Credits
371
+
372
+
This article was possible only thanks to the great support and feedback of some amazing engineers. Here are some of the names that helped me (and sorry if I am forgetting someone): [@\_Don\_Quijote\_](https://twitter.com/_Don_Quijote_), [@GiuseppeMorelli](https://twitter.com/giuseppemorelli), [@oliverturner](https://twitter.com/oliverturner), [@aetheon](https://twitter.com/aetheon), [@dottorblaster](https://twitter.com/dottorblaster), [@bcomnes](https://twitter.com/bcomnes) & [@wa7son](https://twitter.com/wa7son).
0 commit comments