D
Dokployโ€ข5mo ago
Pantelis

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.
No description
No description
5 Replies
Pantelis
PantelisOPโ€ข5mo ago
@๐— ๐—ฟ๐Ÿญ๐—•๐—น๐—ฎ๐˜‡๐—ฒ if i try deploy it after deleting the pnpm-lock.yaml file it fails as well.
No description
๐— ๐—ฟ๐Ÿญ๐—•๐—น๐—ฎ๐˜‡๐—ฒ
NPM install โ€”legacy-peer-deps Try with this command
Pantelis
PantelisOPโ€ข5mo ago
@๐— ๐—ฟ๐Ÿญ๐—•๐—น๐—ฎ๐˜‡๐—ฒ really thank you it worked!! i will search how and why but it worked

Did you find this page helpful?