Nodeclipse / nodeclipse

Nodeclipse-1 : Eclipse plugin for Node.js, PhantomJS development (Nodeclipse core plugin); Maven and Gradle (with Android) plugins
https://nodeclipse.github.io/
158 stars 78 forks source link

Debug as NPM says "execvp(): No such file or directory" #153

Closed levelibeeka closed 10 years ago

levelibeeka commented 10 years ago

I right-click package.json file in my project and choose "Debug as"-> "NPM ..." in the menu. Then type "start" to the "Goal" text box. After that, I can see this error message in the Console: "execvp(): No such file or directory" However it writes nothing else about the problem. When I run "npm start" from command line, it works fine.

If it matters, my system is Mac OS X 10.9

paulvi commented 10 years ago

There are more things to be shown, see http://www.nodeclipse.org/#support for what to include

cm325 commented 10 years ago

same problem here, i want to run some scripts targets from the package.json file. here is all the information you requested:

Nodeclipse version number - 0.15.1.201404300203 Eclipse version number - kepler 4.3.2 Eclipse distribution (e.g. Eclipse for JEE Developers) - SpringSourceTool Suite Description of problem is above, and there are no logs or errors generated when running npm with target from package.json. Here's my original post on SO too - http://stackoverflow.com/questions/23550793/nodeclipse-cant-run-package-json-script-targets

paulvi commented 10 years ago

OK so it is debugging when using npm launch.

I really never used that way. Not sure if I have time to look before next release this month.

the work would be making nodeclipse-1\org.nodeclipse.ui\src\org\nodeclipse\ui\npm\LaunchConfigurationDelegate.java

like nodeclipse-1\org.nodeclipse.debug\src\org\nodeclipse\debug\launch\LaunchConfigurationDelegate.java

or just remove Debug type for this launch, as it is not really implemented.