Skip to content

Commit

Permalink
fix: update pnpm install flags
Browse files Browse the repository at this point in the history
pnpm v7.0.0 until 7.13.5 uses `--strict-peer-dependencies=true` which causes
a failure when not all `peerDependencies` are installed. By setting the
flag explicitly, this will no longer be a problem for new users.

fix: #1806
  • Loading branch information
jmcdo29 committed Oct 27, 2022
1 parent 30b3421 commit 11f3bdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/package-managers/pnpm.package-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export class PnpmPackageManager extends AbstractPackageManager {
// As of PNPM v5.3, all commands are shared with NPM v6.14.5. See: https://pnpm.js.org/en/pnpm-vs-npm
get cli(): PackageManagerCommands {
return {
install: 'install',
add: 'install',
install: 'install --strict-peer-dependencies=false',
add: 'install --strict-peer-dependencies=false',
update: 'update',
remove: 'uninstall',
saveFlag: '--save',
Expand Down

0 comments on commit 11f3bdb

Please sign in to comment.