项目安装包步骤

### 项目初始化

、nmp init、
、nmp init-y、
### 安装项目依赖(包)
、nmp install、
、nmp install 包名 --save、
、nmp install 包名 -g、
、nmp install 包名@版本号、

、nmp update ...、
### 删除
、nmp uninstall 包名 -g、

显示结果:

{
  "name": "node",
  "version": "1.0.0",
  "main": "app.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": " (ISC)",
  "license": "ISC",
  "keywords": [],
  "description": "",
  "dependencies": {
    "koa": "^2.13.4"
  }
}
posted @ 2021-11-25 10:19  与神明画过押  阅读(79)  评论(0)    收藏  举报