1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00

improved documentation for installing nodejs

This commit is contained in:
Massimo Candela
2020-03-17 19:31:17 +01:00
parent 3b23a90ba1
commit d418499684
2 changed files with 26 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ Or use `nohup ./bgpalerter-linux-x64 &` to leave it running after you close the
1. Git clone this repo.
2. Install Node.js (version >= 10.16) and npm ([installing node and npm](https://nodejs.org/en/download/)).
2. Install Node.js (version >= 10.16) and npm ([installing node and npm](node.md)).
3. Execute `npm install` to install all dependencies.

25
docs/node.md Normal file
View File

@@ -0,0 +1,25 @@
# Installing Node.js
Some fast commands are below. The complete documentation (including other platforms) is [here](https://nodejs.org/en/download/)
## With apt (e.g. debian)
```bash
curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -
sudo apt install nodejs
```
## With homebrew (e.g. macos)
```bash
brew update
brew install node@12
```
## With yum (e.g. centos)
```bash
curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -
sudo yum install nodejs
```