Tuesday 6 December 2016

Node.js - Installations


Node.js - Installations

15 Easy steps to setup and Installation of Node Js
  1. Download Node js from below url (stable version) 
    1. OR

  2. Install node js in local system (c drive). 
  3. Open cmd prompt 
  4. Write command : npm install express-generator –g (-g global installation) -> Only once in a system 
  5. Open cmd in htdocs folder 
  6. Enter command : “express surgy” in cmd prompt (surgy -> project name). 
  7. Created sury folder in htdocs. 
  8. Goto surgy folder open cmd prompt 
  9. Installing node modules. 
  10. Enter command : “npm install -i” 
  11. And enter command : “npm install body-parser” (dependencies) 
  12. And enter command : “npm install method-override” (dependencies) 
  13. And enter command : “npm start” 
  14. And enter command : “npm install ejs”  (To call html files, by default it read “.jade” format files ) 
  15. Go to browser type url : http://127.0.0.1:3000 (3000 default port) or localhost:3000 





0 comments:

Post a Comment