add new chinese translations
This commit is contained in:
17
pages.zh/common/npm-ci.md
Normal file
17
pages.zh/common/npm-ci.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# npm ci
|
||||
|
||||
> 在自动化环境中进行 `npm` 项目依赖的干净安装。
|
||||
> 根据 `package-lock.json` 或 `npm-shrinkwrap.json` 安装包。
|
||||
> 更多信息:<https://docs.npmjs.com/cli/commands/npm-ci>。
|
||||
|
||||
- 从 `package-lock.json` 或 `npm-shrinkwrap.json` 安装项目依赖:
|
||||
|
||||
`npm ci`
|
||||
|
||||
- 安装项目依赖,但跳过指定的依赖类型:
|
||||
|
||||
`npm ci --omit={{dev|optional|peer}}`
|
||||
|
||||
- 安装项目依赖,但不运行 `package.json` 中定义的任何预脚本/后脚本:
|
||||
|
||||
`npm ci --ignore-scripts`
|
Reference in New Issue
Block a user