Windows搭建Express环境

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'});
});
posted @ 2018-02-15 16:05  森淼clover  阅读(165)  评论(0编辑  收藏  举报