Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add "manage-package-manager-versions = ture" in .npmrc #68646

Open
wants to merge 6 commits into
base: canary
Choose a base branch
from

Conversation

ryota-murakami
Copy link
Contributor

What?

I added manage-package-manager-versions = ture in .npmrc.
That new feature of pnpm v9.7.0.

Why?

pnpm will automatically download and run the version of pnpm specified in the packageManager field of package.json,
that mean we will never seen such as annoying error.

Your pnpm version is incompatible with "/Users/ryota.murakami/fork/next.js".

Expected version: 9.6.0
Got: 9.7.0

This is happening because the package's manifest has an engines.pnpm field specified.
To fix this issue, install the required pnpm version globally.

To install the latest version of pnpm, run "pnpm i -g pnpm".
To check your pnpm version, run "pnpm -v".

Demo

The video showing auto switch pnpm v9.7.0 to v9.6.0 that specified Next.js project, without error.

CleanShot.2024-08-08.at.12.49.39.mp4

@ijjk
Copy link
Member

ijjk commented Aug 8, 2024

Allow CI Workflow Run

  • approve CI run for commit: a61af4a

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

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.

None yet

2 participants