Skip to content

Conversation

@BlackHole1
Copy link
Member

@BlackHole1 BlackHole1 commented Mar 25, 2025

When a project has both npm and pnpm, using pnpm/action-setup will result in an error: Multiple versions of pnpm specified.

The previous implementation was only meant to avoid the ERR_PNPM_BAD_PM_VERSION error, but it did not take into account the situation of multiple different package managers.

My project structure:

/root
	package.json
		packageManger: npm@XXX

	sub-proj
		package.json
			packageManger: pnpm@YYY

When a project has both npm and pnpm, using pnpm/action-setup will result in an error: `Multiple versions of pnpm specified`.

The previous implementation was only meant to avoid the "ERR_PNPM_BAD_PM_VERSION" error, but it did not take into account the situation of multiple different package managers.

Signed-off-by: Kevin Cui <[email protected]>
@BlackHole1 BlackHole1 requested review from KSXGitHub and zkochan March 25, 2025 11:26
@BlackHole1 BlackHole1 merged commit d648c2d into pnpm:master Mar 28, 2025
75 of 81 checks passed
@BlackHole1 BlackHole1 deleted the fix-err branch March 28, 2025 00:37
HXkaer pushed a commit to YOLOTECHNOLOGY/pnpm-action-setup that referenced this pull request Jul 6, 2025
HXkaer pushed a commit to YOLOTECHNOLOGY/pnpm-action-setup that referenced this pull request Jul 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants