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:
@@ -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
25
docs/node.md
Normal 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
|
||||
```
|
Reference in New Issue
Block a user