R
Railway3d 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
Percy3d ago
Project ID: 51cb3e5e-013d-43eb-b545-600daa26b09f
Faith
Faith3d ago
51cb3e5e-013d-43eb-b545-600daa26b09f lol works nvm
Solution
Brody
Brody3d 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