3 months ago
try to build a image and deploy it with no Custom Build Command and watch patch using railpack
Build Error : build has no write access to the pnpm home directory at /pnpm
Attachments
Pinned Solution
3 months ago
I'd recommend doing pnpm add -D node-gyp instead instead of trying to add it globally.
4 Replies
Status changed to Awaiting Railway Response Railway • 3 months ago
3 months ago
I'd recommend doing pnpm add -D node-gyp instead instead of trying to add it globally.
0x5b62656e5d
I'd recommend doing `pnpm add -D node-gyp` instead instead of trying to add it globally.
3 months ago
I didn't include pnpm add -D node-gyp in my setup to build the image.
I'm just using the default deployment settings.
My repo doesn't contain a Dockerfile either.
Do you suggest I add pnpm add -D node-gyp to my Custom Build Command?
3 months ago
Sorry I should've been a bit clearer.
In your local machine, run the command pnpm add -D node-gyp to add node-gyp to devDependencies.
Push the code, then try deploying it to Railway again.
0x5b62656e5d
Sorry I should've been a bit clearer. In your local machine, run the command `pnpm add -D node-gyp` to add `node-gyp` to devDependencies. Push the code, then try deploying it to Railway again.
3 months ago
Thanks! It worked.
This repo worked a few months back, so I didn't realize I'd need an extra package for the Railway build now.
Status changed to Solved brody • 3 months ago
