Vercel not picking up packageManager from package json
Closed
I have a build that i am upgrading to pnpm v10. i enabled the ENABLE_EXPERIMENTAL_COREPACK=1 and now i am getting error WARN! Warning: Could not enable corepack because package.json is missing "packageManager" property
so my lockfile is not working
where does vercel try to read the packageManager from? i have it in root level, monorepo folder, specific package as well
I have my build logs if necessary to show.
Vercel Staff
I just tried a fresh install of the Turbopack basic example, it comes default with packageManager only on the project root and successfully read this when building with ENABLE_EXPERIMENTAL_COREPACK=1
Putting it additionally on the specific package did not seem to break anything
For anyone having the same problem. i changed by install command to be `corepack activate && corepack pnpm install --frozen-lockfile` and it goes through. Still unsure why Vercel build can’t see the package manager correctly as its clearly there.
As a note, corepack activate seems to not be a valid command, but corepack enable might be what you meant?
I also had to prefix my pnpm build build command with corepack to get this to work.
This topic is closed. It no longer accepts new replies.