Node.js: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Install == The simplest is to install from apt: <source lang="bash"> sudo apt install nodejs npm </source> To install the latest version using apt, install Node.js reposit...") |
No edit summary |
||
Line 1: | Line 1: | ||
[[Node.js]] is the open-source JavaScript runtime environment based on Chrome V8 engine and that can execute JavaScript code outside a web browser. |
|||
== References == |
|||
* https://nodejs.org/en/ — Node.js home (show current LTS version, and latest version). |
|||
* [https://github.com/nvm-sh/nvm NVM] — Node Version Manager, which allows to manage multiple released Node.js versions (to use version from source, see [https://nodejs.org/en/download/package-manager/#nvm here]). |
|||
== Install == |
== Install == |
||
=== Install using distribution packages === |
|||
The simplest is to install from apt: |
The simplest is to install from apt: |
||
<source lang="bash"> |
<source lang="bash"> |
||
Line 13: | Line 20: | ||
sudo apt install nodejs |
sudo apt install nodejs |
||
</source> |
</source> |
||
=== Install using NVM === |
|||
See instruction on [https://github.com/nvm-sh/nvm github]. |
Revision as of 22:57, 31 October 2021
Node.js is the open-source JavaScript runtime environment based on Chrome V8 engine and that can execute JavaScript code outside a web browser.
References
- https://nodejs.org/en/ — Node.js home (show current LTS version, and latest version).
- NVM — Node Version Manager, which allows to manage multiple released Node.js versions (to use version from source, see here).
Install
Install using distribution packages
The simplest is to install from apt:
sudo apt install nodejs npm
To install the latest version using apt, install Node.js repositories (nodesource, [
# Add repository -- adapt version as necessary:
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
# Install
sudo apt install nodejs
Install using NVM
See instruction on github.