Configure vite react app to use pnpm
affanisautomated
PROOP

a year ago

I have a vite react app that is using npm but I need it to use pnpm. I'm not sure how to fix this. Do I need to make a nixpacks file here for this?

Solved

14 Replies

affanisautomated
PROOP

a year ago

c243ded6-9e79-4752-857d-5b6f31fd8cc2


affanisautomated
PROOP

a year ago

It's supposed to use pnpm if a pnpm-lockfile is found however the logs still show it running "npm i"


a year ago

Hey, can you switch the builder from Nixpacks to Railpack?


affanisautomated
PROOP

a year ago

Tried with that but it still tries to run "npm install"


a year ago

Can you try adding a packageManager field to your package.json https://railpack.com/languages/node/#package-managers ?


affanisautomated
PROOP

a year ago

Building with this


affanisautomated
PROOP

a year ago

@uxuz I ran into this issue before and for my nestjs backend, I just created a nixpack file. But if I have this in the packagejson and I use railpack, do I still need the nixpakcs file?


affanisautomated
PROOP

a year ago

P.S: that worked the deployment ran through


a year ago

The Nixpacks file would be useless if you are using Railpack. However, the same approach should also work with Nixpacks as outlined here: https://nixpacks.com/docs/providers/node#corepack.


affanisautomated
PROOP

a year ago

Got it


affanisautomated
PROOP

a year ago

Well that solved the issue


affanisautomated
PROOP

a year ago

Thank you! <:prayge:1231933593924927560>


a year ago

You are welcome! Marking this thread as solved.


a year ago

!s


Status changed to Solved uxuz 12 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...