PNPM 9 Support
Anonymous
TRIALOP

2 years ago

Hey 👋

I had to update my pnpm version locally to v9, and due to work reasons I can't switch back to v8.

Is there any reason for railway not to support v9? Its been out already for more than a month, I'd expect that not to cause problems on deployment, but seems like I was wrong 😅 .

Also, other than switching my project to docker, is there any other solution?

4 Replies

Anonymous
TRIALOP

2 years ago

1a38f728-4c4d-4335-9773-b50fe89d2634


brody
EMPLOYEE

2 years ago

try adding a nixpacks.toml file to your project -

[phases.install]
    cmds = ["npm install -g corepack", "corepack enable", "corepack prepare pnpm@9.1.0 --activate", "pnpm install"]

Anonymous
TRIALOP

2 years ago

That worked, thank you!


brody
EMPLOYEE

2 years ago

no problem!


Loading...