- You need to install express
, a node.js development framework, and check the following information. This framework is not an encapsulation of node.js, but an extension of web applications for node.js (official website http://www.expressjs. com.cn/ )
Node's new framework is all done through npm (package manager), and the new node installation file comes with npm.
Installation command
Non-global installation
npm install express
npm install express-generator
Global installation
npm install express -g
npm install express-generator -g
The difference is that -g
global installation address is C:\Users\Administrator\AppData\Roaming\npm\ node_modules folder.
It is best to run commands under the npm folder when installing non-globally. - Create a project
To create a node project in idea, you must first install the nodeJs plug-in. The plug-in is not long-winded, just search for it, new project > nodejs and NPM > finish.
ok,
select bin>www to run and it will start running.
Start creating a node.js project
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=325889960&siteId=291194637
Recommended
Ranking