Even if you have pnpm installed globally.
When you set packageManager and pnpm as devDependencies in package.json:
{
"packageManager": "pnpm@7.9.0",
"devDependencies": {
"pnpm": "7.9.0",
}
}
Then you run command in project:
Error Info:
Volta error: Could not locate executable `pnpm` in your project.
Please ensure that all project dependencies are installed with `npm install` or `yarn install`
Is it related to this?
https://docs.volta.sh/guide/understanding#managing-your-project