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

switch different pnpm version / 切换不同的 pnpm 版本 #262

Open
JiangWeixian opened this issue Jun 7, 2023 · 0 comments
Open

switch different pnpm version / 切换不同的 pnpm 版本 #262

JiangWeixian opened this issue Jun 7, 2023 · 0 comments
Labels
pnpm manage package with pnpm

Comments

@JiangWeixian
Copy link
Owner

JiangWeixian commented Jun 7, 2023

docs: https://nodejs.org/api/corepack.html

important

{
  "packageManager": "pnpm@version"
}
  1. corepack enable will auto switch to pnpm@7(from package.json) if pnpm@7 available.
  2. use pnpm@7 - corepack prepare pnpm@latest-7 --activate
  3. use pnpm@8 - corepack prepare pnpm@latest-8 --activate

Somethings, corepack will not working as expect, please uninstall pnpm older pnpm version with pnpm uninstall pnpm@version -g.

refs:

@JiangWeixian JiangWeixian added the pnpm manage package with pnpm label Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pnpm manage package with pnpm
Projects
None yet
Development

No branches or pull requests

1 participant