R
Railway5mo ago
Faith

What PNPM version is being ran on railway?

Hey i keep getting the following error
0.838  ERR_PNPM_NO_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent

0.838

0.838 Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"
0.838  ERR_PNPM_NO_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent

0.838

0.838 Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"
And i think its because of its geenrating the lock file from 2 different versions
Solution:
railway uses pnpm v8 by default, you are likely using v9, to have railway use v9 also set the packageManager field in your package.json to pnpm@latest
Jump to solution
3 Replies
Percy
Percy5mo ago
Project ID: 51cb3e5e-013d-43eb-b545-600daa26b09f
Faith
FaithOP5mo ago
51cb3e5e-013d-43eb-b545-600daa26b09f lol works nvm
Solution
Brody
Brody5mo ago
railway uses pnpm v8 by default, you are likely using v9, to have railway use v9 also set the packageManager field in your package.json to pnpm@latest
Want results from more Discord servers?
Add your server