Chin
Chin

Reputation: 12712

setting up node-supervisor for nodeJS

Hi I'm a nodeJS and command line noob. I've managed to get a linux box up running and everything is fine. However restarting the node scripts every time I make changes is beginning to frustrate. So I'm trying to set up node supervisor. https://github.com/isaacs/node-supervisor

All installed fine but when I try to set it up using the following from the command line (putty)

supervisor test.js

I get supervisor: command not found

Does anyone have any idea why this would be? many thanks

Upvotes: 7

Views: 12321

Answers (2)

Grant Fong
Grant Fong

Reputation: 311

You should install supervisor globally with -g command option

> npm install -g supervisor

Upvotes: 2

SpliFF
SpliFF

Reputation: 38966

it means supervisor isn't in your path or wasn't set with execute permissions. Find supervisor then use the full path to it. it's possibly still in the build folder if you forgot to install it system-wide.

Upvotes: 5

Related Questions