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
Post a Comment