koa2

PHP中文网
Release: 2017-07-10 18:10:47
Original
2334 people have browsed it

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>
Copy after login

The above is the detailed content of koa2. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template