-
Notifications
You must be signed in to change notification settings - Fork 945
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
CLI not finding script #108
Comments
@nmcclay I cannot reproduce this
What version of forever are you using? Are you sure you're on |
Here is my install output from npm: Blah-MacBook-Pro:node-api user$ npm install forever -g > [email protected] preinstall /usr/local/lib/node_modules/forever/node_modules/daemon > node-waf configure build Checking for program g++ or c++ : /usr/bin/g++ Checking for program cpp : /usr/bin/cpp Checking for program ar : /usr/bin/ar Checking for program ranlib : /usr/bin/ranlib Checking for g++ : ok Checking for node path : ok /usr/local/lib/node Checking for node prefix : ok /usr/local 'configure' finished successfully (0.085s) Waf: Entering directory `/usr/local/lib/node_modules/forever/node_modules/daemon/build' [1/2] cxx: src/daemon.cc -> build/default/src/daemon_1.o [2/2] cxx_link: build/default/src/daemon_1.o -> build/default/daemon.node Waf: Leaving directory `/usr/local/lib/node_modules/forever/node_modules/daemon/build' 'build' finished successfully (0.380s) /usr/local/bin/forever -> /usr/local/lib/node_modules/forever/bin/forever [email protected] /usr/local/lib/node_modules/forever ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected] [email protected]) └── [email protected] I'm running on node 0.4.11 as well. |
I'm getting the same thing on a fresh EC2 instance.
|
I also get this error (on EC2) In it's most simple form: cd /var/www/deploydir
forever start app.js
info: Running action: start
info: Forever processing file: start
error: Cannot start forever
error: script /var/www/deploydir/start does not exist. forever is the latest and is installed globally. |
another one with this error. exactly as SlexAxton typed it. |
I've tried downgrading down to 0.6.3 stepwise but with the same results, maybe a dependency has broken somewhere? |
Dependency is a good thought. It's certainly not a core node dependency (by upgrading to From the package.json file "dependencies": {
"async": "0.1.x",
"colors": "0.x.x",
"cliff": "0.x.x",
"eyes": "0.1.x",
"daemon": "0.3.x",
"mkdirp": "0.x.x",
"nconf": "0.x.x",
"optimist": "0.2.x",
"pkginfo": "0.x.x",
"portfinder": "0.x.x",
"timespan": "2.0.x",
"winston": "0.4.x"
} So most of them are not 'locked in' from an exact version standpoint. Most should be just bugfixes though. Does any of that make sense though? daemon? I'm not intimately familiar with all of them though. |
Cannot repro on my machine. It smells like a dependency bug. Roll call. Please paste the results from "npm ls" if you are having this issue
|
Ok, confirmed. This is a regression I introduced in |
Thanks! |
This is resolved. $ [sudo] npm uninstall forever [-g]
$ [sudo] npm install forever [-g] Remark: As noted above, use |
confirmed working: https://img.skitch.com/20110829-n8gxqn534r5gaifq7crq88y2ex.jpg |
confirmed working here. had to: npm uninstall forever pro status. thanks a ton for the fix. |
Confirmed here as well, thanks for the quick fix! |
Awesome, works for me again :) |
It worked great for me too, thanks! |
Message from the future: this error comes up whenever you give an unknown action command to forever, like |
Attempting to start forever I get the following:
Inside /bin/forever this file is determined with
When I change the index to 1 this finds the file argument correctly. If this has changed it doesn't match the CLI help's usage and example reference.
The text was updated successfully, but these errors were encountered: