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