add new chinese translations
This commit is contained in:
28
pages.zh/common/npm-dedupe.md
Normal file
28
pages.zh/common/npm-dedupe.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# npm dedupe
|
||||
|
||||
> 减少 `node_modules` 目录中的重复。
|
||||
> 更多信息:<https://docs.npmjs.com/cli/commands/npm-dedupe>。
|
||||
|
||||
- 在 `node_modules` 中去重包:
|
||||
|
||||
`npm dedupe`
|
||||
|
||||
- 在去重过程中遵循 `package-lock.json` 或 `npm-shrinkwrap.json`:
|
||||
|
||||
`npm dedupe --lock`
|
||||
|
||||
- 以严格模式运行去重:
|
||||
|
||||
`npm dedupe --strict`
|
||||
|
||||
- 在去重过程中跳过可选/同级依赖:
|
||||
|
||||
`npm dedupe --omit={{optional|peer}}`
|
||||
|
||||
- 启用详细日志以便于故障排除:
|
||||
|
||||
`npm dedupe --loglevel=verbose`
|
||||
|
||||
- 将去重限制为特定包:
|
||||
|
||||
`npm dedupe {{package_name}}`
|
Reference in New Issue
Block a user