Guest User

Untitled

a guest
Nov 21st, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. - package.json
  2. ```
  3. {
  4. "name": "koa2",
  5. "version": "0.1.0",
  6. "private": true,
  7. "scripts": {
  8. "start": "node bin/www",
  9. "dev": "./node_modules/.bin/nodemon bin/www",
  10. "prd": "pm2 start bin/www",
  11. "test": "echo \"Error: no test specified\" && exit 1"
  12. },
  13. "dependencies": {
  14. "debug": "^2.6.3",
  15. "koa": "^2.2.0",
  16. "koa-bodyparser": "^3.2.0",
  17. "koa-convert": "^1.2.0",
  18. "koa-json": "^2.0.2",
  19. "koa-logger": "^2.0.1",
  20. "koa-onerror": "^1.2.1",
  21. "koa-router": "^7.1.1",
  22. "koa-static": "^3.0.0",
  23. "koa-views": "^5.2.1",
  24. "pug": "^2.0.0-rc.1"
  25. },
  26. "devDependencies": {
  27. "nodemon": "^1.8.1"
  28. }
  29. }
  30. ```
  31.  
  32. 这个文件中"^"表示的是匹配大版本号的任意一个版本,例如 ^2.2.0 会匹配 2.x.x
  33.  
  34. 还有一种情况是 ~2.3.0,会匹配2.3.x,更小版本。
Add Comment
Please, Sign In to add comment