SHARE

We can install ForeverJS on CentOS with npm command:

npm install -g forever

install foreverjs on centos

Result:

[root@tutorialspots ~]# npm install -g forever
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher
 to avoid a RegExp DoS issue
npm WARN optional dep failed, continuing fsevents@1.0.14
/usr/bin/forever -> /usr/lib/node_modules/forever/bin/forever
forever@0.15.2 /usr/lib/node_modules/forever
├── path-is-absolute@1.0.1
├── object-assign@3.0.0
├── clone@1.0.2
├── colors@0.6.2
├── timespan@2.3.0
├── nssocket@0.5.3 (eventemitter2@0.4.14, lazy@1.0.11)
├── cliff@0.1.10 (eyes@0.1.8, colors@1.0.3)
├── optimist@0.6.1 (wordwrap@0.0.3, minimist@0.0.10)
├── prettyjson@1.1.3 (colors@1.1.2, minimist@1.2.0)
├── winston@0.8.3 (cycle@1.0.3, async@0.2.10, eyes@0.1.8, stack-trace@0.0.9, iss
tream@0.1.2, pkginfo@0.3.1)
├── nconf@0.6.9 (ini@1.3.4, async@0.2.9, optimist@0.6.0)
├── utile@0.2.1 (async@0.2.10, deep-equal@1.0.1, ncp@0.4.2, i@0.3.5, mkdirp@0.5.
1, rimraf@2.5.4)
├── shush@1.0.0 (strip-json-comments@0.1.3, caller@0.0.1)
├── flatiron@0.4.3 (director@1.2.7, optimist@0.6.0, prompt@0.2.14, broadway@0.3.
6)
└── forever-monitor@1.6.0 (minimatch@2.0.10, ps-tree@0.0.3, broadway@0.3.6, chok
idar@1.6.1)

To learn how to use ForeverJS, you can read at this tutorial: Managing Nodejs servers with foreverjs