Skip to content

Commit 8d6b32f

Browse files
committed
fix: pnpm does not want save flag on remove
1 parent d361ab5 commit 8d6b32f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/pnpm-package-manager.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ export class PnpmPackageManager extends BasePackageManager {
5151

5252
@exported("pnpm")
5353
public uninstall(packageName: string, config?: IDictionary<string | boolean>, cwd?: string): Promise<string> {
54+
// pnpm does not want save option in remove. It saves it by default
55+
delete config['save'];
5456
const flags = this.getFlagsString(config, false);
5557
return this.$childProcess.exec(`pnpm remove ${packageName} ${flags}`, { cwd });
5658
}

0 commit comments

Comments
 (0)