首页 > web前端 > js教程 > 正文

koa2

PHP中文网
发布: 2017-07-10 18:10:47
原创
2246 人浏览过

C:\Users\guo\Desktop\testapi>npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See `npm help json` for definitive documentation on these fields
and exactly what they do.

Use `npm install --save` afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
name: (testapi)
version: (1.0.0)
description: 测试api
entry point: (index.js)
test command:
git repository:
keywords:
author: 郭东生
license: (ISC)
About to write to C:\Users\guo\Desktop\testapi\package.json:

{
  "name": "testapi",
  "version": "1.0.0",
  "description": "测试api",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "郭东生",
  "license": "ISC"
}


Is this ok? (yes)

C:\Users\guo\Desktop\testapi>
C:\Users\guo\Desktop\testapi>

 

<span style="font-size: 18px">一键生成koa/koa2项目:
1、 npm install -g koa-<span style="color: #000000">generator
2<span style="color: #000000">、新建项目目录  koa mytest (koa1项目)  koa2 koa2test (koa2项目)
3<span style="color: #000000">、进入目录 cd koa2test
4<span style="color: #000000">、安装依赖 npm install
5、运行 npm start<br><br></span></span></span></span></span><br><br>
登录后复制

以上是koa2的详细内容。更多信息请关注PHP中文网其他相关文章!

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
作者最新文章
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!