通过从终端运行以下命令来安装Express Generator:
npm install -g express-generator
express myExpressApp --view pug # 创建myExpressApp文件夹
cd myExpressApp
npm install
npm start
浏览器访问: http:// localhost:3000
通过从终端运行以下命令来安装Express Generator:
npm install -g express-generator
express myExpressApp --view pug # 创建myExpressApp文件夹
cd myExpressApp
npm install
npm start
浏览器访问: http:// localhost:3000