1. 以管理员身份运行cmd
2. cmd进入要配置项目的文件夹
3. nmp init
4. 使用default配置——一直回车
5. nmp install --save express
//npm install -g eslint
1)get
app.get('/', (req, res) => {
res.send({hi: 'there'});
});
1. 以管理员身份运行cmd
2. cmd进入要配置项目的文件夹
3. nmp init
4. 使用default配置——一直回车
5. nmp install --save express
//npm install -g eslint
1)get
转载于:https://www.cnblogs.com/GW977/p/8449564.html