title: How to install node.js and create project in Eclipse
body: <p>The steps I've tried:
  1.(OK) install node from official website: <a href="https://nodejs.org/en/download/" rel="nofollow noreferrer">https://nodejs.org/en/download/</a>
  Result: I'm able to open cmd(in any location, type node then use commands like "console.log" and it prints my messages)</p>
  
  <p>2.(Failure) install express using <code>npm install -g express</code> from cmd gives me an error(picture attached<a href="https://i.stack.imgur.com/LHiz7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LHiz7.jpg" alt="enter image description here"></a></p>
  
  <p>3.(OK) I've succeed installing express using the following command <code>npm install express</code> (without -g)
  4.(OK) Writing a simple Hello World program works. Javascript file:</p>
  
  <pre><code>var http = require('http');
  
  // Configure our HTTP server to respond with Hello World to all requests.
  var server = http.createServer(function (request, response) {
    response.writeHead(200, {"Content-Type": "text/plain"});
    response.end("Hello World\n");
  });
  
  // Listen on port 8000, IP defaults to 127.0.0.1
  server.listen(8000);
  
  // Put a friendly message on the terminal
  console.log("Server running at http://127.0.0.1:8000/");
  </code></pre>
  
  <p>5.(Failure) However, I wanna run a bigger project, where besides one js file, I also have an index.html file. If I move both files to node installation directory, everything works. But I wanna be able to keep my projects somewhere else. If I try to run with <code>node C:\Users\marius\Downloads\chat-example-master\indes.js</code> I get the error: <code>Cannot find module express</code>. Thus it seems that when I installed express without "-g" I got it working only in node directory.(let me know if you have any doubt).
  6.(Failure) When creating a Node.js project from Eclipse, I choose empty project, no template, then add a single and simple js file(the one with Hello World), right click on project name -> run as -> run Configuration -> Node Application -> New -> add my .js file -> Run. I get the following error: 
  Exception occurred executing command line.(steps from <a href="http://techprd.com/how-to-setup-node-js-project-in-eclipse/" rel="nofollow noreferrer">http://techprd.com/how-to-setup-node-js-project-in-eclipse/</a>)</p>
  
  <pre><code>Cannot run program "node" (in directory "C:\Users\marius\workspace\FirstNodeProject"): CreateProcess error=2, The system cannot find the file specified
  </code></pre>
  
  <p>To recap: What I want is to be able to run node projects located anywhere with "node" in cmd and to create node.js and express project and run them from Eclipse.
  Please let me know if you need more information.</p>