先安装Nodejs
npm install -g express-generator
npm install -g express
express ProjectName
cd ProjectName
npm start
npm install package --save
// Look Package.json
{
"name": "test",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www"
},
"dependencies": {
"body-parser": "^1.18.3",
"cookie-parser": "^1.4.4",
"debug": "^2.6.9",
"ejs": "^2.6.1",
"express": "^4.16.4",
"http-errors": "^1.6.3",
"jade": "^1.11.0",
"morgan": "^1.9.1"
}
}