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

9 months 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

9 months 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!


9 months 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 10 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

9 months 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 10 months ago


Status changed to Solved parmstar 10 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...