Configuring a node server for nodeJS

Hi, I am nodeJS and noob command line. I managed to run linux box, and everything is fine. However, restarting node scripts every time I make changes starts to get frustrated. Therefore, I am trying to configure node supervisor. https://github.com/isaacs/node-supervisor

Everything is installed fine, but when I try to configure it using the following from the command line (putty)

supervisor test.js

I get supervisor: command not found

Does anyone know why this would be? many thanks

+7
source share
2 answers

this means that the supervisor is not in your path or has not been installed with execute permissions. Find the supervisor, then use the full path to it. it may still be in the build folder if you forgot to install it in the system-wide version.

+5
source

You must install the supervisor globally with the -g option

> npm install -g supervisor 
+2
source

All Articles