You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
1.4 KiB
81 lines
1.4 KiB
4 years ago
|
= Nodejs Install !
|
||
|
Apostolos rootApostolos@swarmlab.io
|
||
|
// Metadata:
|
||
|
:description: Intro and Install
|
||
|
:keywords: iot, swarm. docker
|
||
|
:data-uri:
|
||
|
:toc: right
|
||
|
:toc-title: Table of contents
|
||
|
:toclevels: 4
|
||
|
:source-highlighter: highlight
|
||
|
:icons: font
|
||
|
:sectnums:
|
||
|
|
||
|
|
||
|
|
||
|
{empty} +
|
||
|
|
||
|
|
||
|
== Install script Linux
|
||
|
|
||
|
=== A Nodejs install script
|
||
|
|
||
|
.install Node.js v16.x:
|
||
|
[source,sh]
|
||
|
----
|
||
|
# Using Ubuntu
|
||
|
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
|
||
|
sudo apt-get install -y nodejs
|
||
|
|
||
|
# Using Debian, as root
|
||
|
curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
|
||
|
apt-get install -y nodejs
|
||
|
----
|
||
|
|
||
|
|
||
|
=== Debian and Ubuntu based Linux distributions
|
||
|
|
||
|
https://github.com/nodesource/distributions/blob/master/README.md[NodeSource^]
|
||
|
|
||
|
|
||
|
|
||
|
=== Installing Node.js via package manager
|
||
|
|
||
|
NOTE: The packages on this page are maintained and supported by their respective packagers, not the Node.js core team.
|
||
|
|
||
|
https://nodejs.org/en/download/package-manager/[Installing Node.js via package manager^]
|
||
|
|
||
|
|
||
|
=== Installing Node.js (scripts on github)
|
||
|
|
||
|
https://gist.github.com/isaacs/579814[gist.github.com^]
|
||
|
|
||
|
|
||
|
== Installing Node.js Windows
|
||
|
|
||
|
https://nodejs.org/en/download/current/[Installer^]
|
||
|
|
||
|
=== Alternatives
|
||
|
|
||
|
Using Chocolatey:
|
||
|
|
||
|
[source,sh]
|
||
|
----
|
||
|
cinst nodejs
|
||
|
# or for full install with npm
|
||
|
cinst nodejs.install
|
||
|
----
|
||
|
|
||
|
Using Scoop:
|
||
|
|
||
|
[source,sh]
|
||
|
----
|
||
|
scoop install nodejs
|
||
|
----
|
||
|
|
||
|
|
||
|
== Installing Node.js macOS
|
||
|
|
||
|
https://nodejs.org/en/download/current/[Installer^]
|
||
|
|