When using pnpm to call the commands in package.json, you need to pay attention to how parameters are passed:
For example, using the pnpm --filter parameter to run the prepare command:
pnpm run --filter "./packages/**" prepareFor example, in the following package.json configuration:
{
"scripts": {
"command": "modern command"
}
}The way to pass parameters when running the command is:
pnpm run command --optionsModern.js requires Node.js >= 20.19.5, and pnpm v6 does not support Node.js 20, so please use pnpm v7 or higher.