Installing Scout
Installing Scout is easiest with npm. To install Scout, open your terminal and run the following command:
$ npm install -g scoutjs
This will install scout
as a global command line tool.
If npm doesn't have the permission to run the install process you will get a long error with this message in the middle:
Please try running this command again as root/Administrator.
In that case, run the install command again with sudo
:
$ sudo npm install -g scoutjs
Installing Scout as a project dependency
Scout can also be installed as a local npm dependency. In the root directory of your project, run the following command:
$ npm install scoutjs --save-dev
This will install Scout in the project's node_modules
directory.
The Scout binary can run from node_modules/.bin/scoutjs
.
Even though it is installed with npm, Scout is only a command line tool, not a true node module.
In other words: you can't require('scoutjs')
.