Moving from nixpack to railpack. Configured railpack.json. Package.json not found?
ioo52987
PROOP

a year ago

Hi!

deployment id: 39042c42-7ff3-446f-9d88-866acc362d7d

Moving from nixpack to railpack. I configured railpack.json because I need to omit some conflicting dependency with --legacy-peer-deps, but now I am getting an error that package.json not found?

{
  "$schema": "https://schema.railpack.com",
  "steps": {
    "install": {
      "commands": ["npm install --legacy-peer-deps"]
    },
    "build": {
      "inputs": [{ "step": "install" }],
      "commands": ["...", "./my-custom-build.sh"]
    }
  },
  "deploy": {
    "startCommand": "node dist/index.js"
  }
}

I set RAILPACKS_NODE_VERSION=24.5.0

I'm stuck. What am I missing?

Solved

3 Replies

Railway
BOT

a year ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


a year ago

Please file this issue on the github.com/railwayapp/railpack repo and we will have a look!


Status changed to Awaiting User Response Railway 11 months ago


jake

Please file this issue on the [github.com/railwayapp/railpack](http://github.com/railwayapp/railpack) repo and we will have a look!

ioo52987
PROOP

a year ago

https://github.com/railwayapp/railpack/issues/211

I have also update the env variable from the plural to the singular form.

New deployment: 723c1e90-1b09-4cd6-8749-5a5094926203


Status changed to Awaiting Railway Response Railway 11 months ago


Status changed to Solved parmstar 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...