docs(install): supplementary explanation of --force (#5932)

Co-authored-by: Zoltan Kochan <z@kochan.io>
This commit is contained in:
bohan
2023-01-16 09:48:24 +08:00
committed by GitHub
parent 5935312a68
commit 4655dd41e1
3 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
---
"@pnpm/plugin-commands-installation": patch
"pnpm": patch
---
Add more info to the description of the `--force` option in the `pnpm install` command.

View File

@@ -0,0 +1,6 @@
---
"@pnpm/resolve-dependencies": patch
"pnpm": patch
---
`pnpm install --fix-lockfile` should install successfully when package has no dependencies but has auto installed peer dependencies [#

View File

@@ -215,7 +215,9 @@ by any dependencies, so it is an emulation of a flat node_modules',
name: '--package-import-method clone',
},
{
description: 'Force reinstall dependencies: refetch packages modified in store, recreate a lockfile and/or modules directory created by a non-compatible version of pnpm',
description: 'Force reinstall dependencies: refetch packages modified in store, \
recreate a lockfile and/or modules directory created by a non-compatible version of pnpm. \
Install all optionalDependencies even they don\'t satisfy the current environment(cpu, os, arch)',
name: '--force',
},
{