9 months 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?
14 Replies
It's supposed to use pnpm if a pnpm-lockfile is found however the logs still show it running "npm i"
9 months ago
Hey, can you switch the builder from Nixpacks to Railpack?
9 months ago
Can you try adding a packageManager field to your package.jsonhttps://railpack.com/languages/node/#package-managers ?
@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?
9 months 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.
9 months ago
You are welcome! Marking this thread as solved.
9 months ago
!s
Status changed to Solved uxuz • 9 months ago