美文网首页
003.koa2 配置

003.koa2 配置

作者: cmd_ts | 来源:发表于2019-01-23 10:12 被阅读6次

1.cnpm init -y

2.cnpm i koa koa-router monk koa-bodyparser --save

3.cnpm i nodemon -g

{
"name": "koa_mini_server",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "nodemon app.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"koa": "^2.6.2",
"koa-bodyparser": "^4.2.1",
"koa-router": "^7.4.0"
}
}

npm start

相关文章

网友评论

      本文标题:003.koa2 配置

      本文链接:https://www.haomeiwen.com/subject/tftljqtx.html