pnpm
manage package with pnpm
docs: https://nodejs.org/api/corepack.html
important
{
"packageManager": "pnpm@version"
}
`corepack enable`
will auto switch to`pnpm@7`
(from`package.json`
) if`pnpm@7`
available.- use pnpm@7 -
`corepack prepare pnpm@latest-7 --activate`
- 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:
- https://github.com/pnpm/pnpm/issues/1383
"find-up": "latest"
"find-up4": "npm:find-up@^4.1.0"