Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

setting up node-supervisor for nodeJS

Tags:

node.js

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

like image 373
Chin Avatar asked Apr 18 '11 06:04

Chin


2 Answers

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.

like image 147
SpliFF Avatar answered Oct 03 '22 18:10

SpliFF


You should install supervisor globally with -g command option

> npm install -g supervisor
like image 44
Grant Fong Avatar answered Oct 03 '22 18:10

Grant Fong