Open gBusato opened 1 month ago
I fixed this by adding this to the package.json
"packageManager": "pnpm@9.1.1"
I fixed this by adding this to the package.json
"packageManager": "pnpm@9.1.1"
THanks for this! Worked for me.
This is beyond ridiculous that this is not in the doc's and or automated.
Description
Hey guys,
I was having some trouble deploying a NextJS application using Nixpacks and pnpm v9.1.0 as package manager.
The typical error while deploying was happening during the pnpm install :
ERR_PNPM_NO_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent
After some research, I found out that currently ( 2024/05/20 ) Nixpack doesn't support pnpm v9.0+ and only v8.0.
One of the solution is to downgrad your pnpm version, but I couldn't due to some other projects running on pnpm v9.0.
Well I did found a solution on this github post.
Here are the steps to make it work :
[phases.install] cmds = ["npm install -g corepack", "corepack enable", "corepack prepare pnpm@9.1.0 --activate", "pnpm install"]