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

Nodeclipse won't run or debug app on OSX Maverick, nodeclipse 0.8.0, and JDK 1.7.03_45 (node path was not set) #97

Closed thenderson21 closed 10 years ago

thenderson21 commented 10 years ago

When I try to run or debug a nodejs app I get and error:

java.io.IOException: Cannot run program "node" (in directory 
"/Users/<USERNAME>/Documents/Projects/<PROJECTNAME>"): error=2, No such file or directory.

I can run the app just fine in the the terminal just fine.

My system is OSX Maverick, Eclipse Standard/SDK Version: Kepler Service Release 1 Build id: 20130919-0819, Nodeclipse 0.8.0, jdk1.7.0_45.jdk

Not sure if this is a bug or a configuration error. I would like to know how to fix this.

screen shot 2013-12-07 at 12 17 08 pm

paulvi commented 10 years ago

Have you tried to disable Find node on PATH option and use exact node location? For this error it is clear, that system can't find some file, so if it is not your app script, it is node.

By the way, what Markdown Editor do you use?

thenderson21 commented 10 years ago

It works when I disable the Find node on PATH option and point to node locations. It isn't able to find node or nodemon in the path.

I normal use Coda as for most of my web development (php, js ...). I usually just use coda since I'm that is where I am at.

paulvi commented 10 years ago
  1. Disable Find node on PATH,
  2. then select node location, e.g. C:\Program Files\nodejs\node.exe is the solution when node is not on your PATH

check Preferences carefully, experiment a bit.

Check http://www.nodeclipse.org/history on what's new and how to get Markdown Editor

paulvi commented 10 years ago

Asked on http://stackoverflow.com/questions/20445359/nodeclipse-wont-run-or-debug-app-on-osx-maverick-nodeclipse-0-8-0-and-jdk-1-7