Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nodejs app fails to run in Nodeclipse

I setup Nodeclipse and wrote a simple hello app. When I try to run as a Node Appplication, I get the following error

Exception occurred executing command line. Cannot run program "node" (in directory "C:\path\to\app"): CreateProcess error=2, The system cannot find the file specified

If I run from the Nodejs console, the app runs.

Is there a way I can make it runnable from Nodeclipse?

like image 631
user3095242 Avatar asked May 30 '14 08:05

user3095242


3 Answers

I know this question is a month old, but I was getting the same error and managed to fix it.

Try going to Window -> Preferences -> Nodeclipse and unchecking the box that says "find node on PATH...". Then make sure the "Node.js path" below is set to the location of the node.exe file (for me it was C:\Program Files (x86)\nodejs\node.exe).

I'm not sure why this worked (I checked my PATH and nodejs is definitely in there), but maybe it will help someone else.

like image 190
Jordan Avatar answered Oct 30 '22 09:10

Jordan


this error is show cause your node.exe is not configured in PATH simple solution is configure it or use below method go to windows -> preferences -> nodeclipse and uncheck the checkbox (find node on PATH) it works

like image 26
Sumeet_Pol Avatar answered Oct 30 '22 08:10

Sumeet_Pol


Do you have Node.js installed? What is path to it?

Check Window -> Preferences -> Nodeclipse and compare.

http://www.nodeclipse.org/#support have also other option to follow with

Quote:

  • How do I? -- 1) F1/Help -> Help Contens -> Nodeclipse Help , 2) Online Help or 3) StackOverflow! *1
    *1 Don't forget to add `nodeclipse` tag.
  • I got this error, why? -- StackOverflow! *1
  • I got this error and I'm sure it's a bug -- raise an issue!

Should you report a bug, please include the following:

  1. Nodeclipse version number (like 0.4 or 0.8)
  2. Eclipse version number (like 4.3.1 Kepler or 4.4.0)
  3. Eclipse distribution (e.g. Eclipse for Java EE Developers)
  4. A detailed description of the steps necessary to reproduce the problem.
  5. Screenshot and stack trace, that you can get from Eclipse Error Log View (Window -> Show View ...) or from '.log' file from the directory '.metadata' in your workspace.
  6. See example issue #78
like image 21
Paul Verest Avatar answered Oct 30 '22 09:10

Paul Verest