Skip to content

Moving from nixpack to railpack. Configured railpack.json. Package.json not found? #211

@ioo52987

Description

@ioo52987

Hi!

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

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 RAILPACK_NODE_VERSION=24.5.0

I'm stuck. What am I missing?

The project is hooked up to my GitHub. I just checked, package.json is in the root. When using Nixpack I didn't need to specify the root directory, but I set it for railpack as '/' and tried a deploy. It failed. It also fails when I don't set the root. idk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions