Cannot deploy a nextjs project with pnpm package.
I am trying to deploy a Next.js project, but I keep receiving this message: "Cannot install with 'frozen-lockfile' because pnpm-lock.yaml is absent."
The problem is that, based on my project structure, the pnpm-lock.yaml file is indeed there (I have provided a screenshot as proof). I am using Next.js v15.0.
While searching for solutions, I found that I can bypass this issue by adding the following line in the ENV configuration:
NIXPACKS_INSTALL_CMD=pnpm install --no-frozen-lockfile.
However, after doing this, I am unable to access my page through the domain. After some investigation, I discovered that in the Traefik file system, there is no record of my domain in the acme.json fileโonly .yml files in the dynamic folder.


5 Replies
You tried without lock file?
@๐ ๐ฟ๐ญ๐๐น๐ฎ๐๐ฒ if i try deploy it after deleting the pnpm-lock.yaml file it fails as well.

NPM install โlegacy-peer-deps
Try with this command
@๐ ๐ฟ๐ญ๐๐น๐ฎ๐๐ฒ really thank you it worked!! i will search how and why but it worked
For nothing