question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vercel doesn't seem to run pnpm with v7 in CI

See original GitHub issue

pnpm changed from lockfileVersion: 5.3 to lockfileVersion: 5.4 in v7.

I redeployed without cache but there is still a warning in the pipeline like this:

08:37:34.173 | Installing build runtime...
08:37:36.081 | Build runtime installed: 1.907s
08:37:37.425 | No Build Cache available
08:37:37.735 | Running "install" command: `pnpm install`...
08:37:38.329 | Scope: all 7 workspace projects
08:37:38.448 | WARN  Your pnpm-lock.yaml was generated by a newer version of pnpm. It is a compatible version but it might get downgraded to version 5.3
08:37:38.449 | Lockfile is up-to-date, resolution step is skipped

pnpm v6 and v7 differs quite a bit so installing with the older version could lead to issues.


UPDATE on 7th August: When fixing the issue, it would be great if the Vercel team could make sure not only to check for a string of lockFileVersion: 5.4 but rather if the string includes that part. This is important because the value can also be lockfileVersion: 5.4-inlineSpecifiers when use-inline-specifiers-lockfile-format is enabled with was part of this release: `https://github.com/pnpm/pnpm/releases/tag/v7.7.0

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
styflecommented, Aug 8, 2022

Please try out corepack https://vercel.com/changelog/corepack-experimental-is-now-available

It lets you select a specific pnpm version which should solve this issue, thanks!

2reactions
mcmxcdevcommented, Jul 15, 2022

As workaround we specified a custom install command in Vercel UI now as npm i pnpm@7.5.0 -g, should help you with the patching 😉

Just a workaround though, not how it’s supposed to behave.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does npm run start not work on Vercel?
If your build command is npm run start , node app.js , nodemon server.js , or similar, it is likely you are trying...
Read more >
How to fix Next.js Vercel deployment module not found error
I had to edit my package.json to use the next binary that ships in the node_modules/next directory:
Read more >
caxa - npm
Package Node.js applications into executable binaries. Latest version: 3.0.1, last published: 2 months ago. Start using caxa in your project ...
Read more >
8 ways to deploy a React app for free - LogRocket Blog
The first step is to install Vercel globally. npm i -g vercel // or yarn global add vercel. Once Vercel is installed, run...
Read more >
Prevent npm install for not supported Node.js versions
Use a local npm configuration to prevent users from installing your module/project with an unsupported Node.js version.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found