javascript - How to specify module path in node.js -


i new in node.js, installed angularjs , expressjs bower, , have app structure below:

--parking     --server.js     --bower_components         --angular         --express             --lib                --express.js 

in server.js, want import express module, how can specify express module path in server.js, give me suggestions?

express node.js module , should installed npm instead bower:

$ npm install express --save 

then simple require in server.js:

var express = require(express); 

as per reference: installing express , basic example


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -