Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: No program specified #28

Closed
crickeys opened this issue Nov 7, 2011 · 8 comments
Closed

Error: No program specified #28

crickeys opened this issue Nov 7, 2011 · 8 comments

Comments

@crickeys
Copy link

crickeys commented Nov 7, 2011

running on node v0.6.1-pre

I get this error:

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: No program specified.
at Object.run (/usr/local/lib/node_modules/supervisor/lib/supervisor.js:25:11)
at Object. (/usr/local/lib/node_modules/supervisor/lib/cli-wrapper.js:11:25)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)

@TomFrost
Copy link

TomFrost commented Nov 9, 2011

Confirming this issue:

$ node -v
v0.6.0

$ supervisor app/MyApp.js 
The "sys" module is now called "util". It should have a similar interface.
DEBUG: watch: undefined
No program specified.

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
Error: No program specified.
    at Object.run (/usr/local/lib/node_modules/supervisor/lib/supervisor.js:25:11)
    at Object.<anonymous> (/usr/local/lib/node_modules/supervisor/lib/cli-wrapper.js:11:25)
    at Module._compile (module.js:432:26)
    at Object..js (module.js:450:10)
    at Module.load (module.js:351:31)
    at Function._load (module.js:310:12)
    at Array.0 (module.js:470:10)
    at EventEmitter._tickCallback (node.js:192:40)

Edit: Note that checking out the most recent HEAD and replacing my npm installation resolves the issue, however require('sys') should be changed to require('util'). I won't bother with a pull request ;-)

@DenisNP
Copy link

DenisNP commented Nov 12, 2011

I have the same error. Changing "sys" to "util" did not help, as well as reinstalling.

nodejs v0.6.1

@wavded
Copy link

wavded commented Nov 13, 2011

same issue

@lanttu
Copy link

lanttu commented Nov 13, 2011

Try this

node-supervisor -p app.js -w ./

@iangreenleaf
Copy link
Collaborator

Try upgrading to 0.2.0 and see if that resolves these issues.

@jockster
Copy link

Hi,

I have this issue (with node 0.7.0-pre) and cannot upgrade to supervisor 0.2.0 and instead see below error:

npm ERR! System Linux 3.0.0-12-generic-pae
npm ERR! command "node" "/usr/local/bin/npm" "install" "supervisor" "0.2.0"
npm ERR! cwd /var/www
npm ERR! node -v v0.7.0-pre
npm ERR! npm -v 1.1.0-beta-4
npm ERR! type obj_ctor_property_non_object
npm ERR! arguments [ 'keys' ]
npm ERR! message Object.keys called on non-object

any ideas?

@wavded
Copy link

wavded commented Dec 18, 2011

Wow living on the edge, you are running an unstable version of node (0.7.0-pre) which is highly unlikely to run many packages, the latest stable 0.6.6 works good w/ supervisor.


Sent from my iPhone

On Dec 18, 2011, at 4:48 AM, theindustryreply@reply.github.com wrote:

Hi,

I have this issue (with node 0.7.0-pre) and cannot upgrade to supervisor 0.2.0 and instead see below error:

npm ERR! System Linux 3.0.0-12-generic-pae
npm ERR! command "node" "/usr/local/bin/npm" "install" "supervisor" "0.2.0"
npm ERR! cwd /var/www
npm ERR! node -v v0.7.0-pre
npm ERR! npm -v 1.1.0-beta-4
npm ERR! type obj_ctor_property_non_object
npm ERR! arguments [ 'keys' ]
npm ERR! message Object.keys called on non-object

any ideas?


Reply to this email directly or view it on GitHub:
#28 (comment)

@leason
Copy link

leason commented Mar 5, 2012

FYI - running 0.7.5-pre and just ran into this issue as well. I know that I'm running a very early and unstable build, but wanted to give a heads up to others that come across this ticket. I am going to try and downgrade and see if the latest stable can run supervisor. Tried with 0.0.6 of supervisor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants