Node install fails on flyctl deploy

Hi, I’m trying to deploy a NodeJS app to fly.io and when I run flyctl deploy I get the following error. I have added **.vscode/ and **node_modules/ to the .dockerignore file as well.

I have a few ideas.

  1. It might be possible you’re on /workspace rather than /workspace/YOURPROJECT, you need to be on this project root folder to run deployments

  2. Ensure the .dockerignore lives on the root of your project, adding node_modules on a line should be enough

Hey @lubien

  1. It was running inside /workspace/PROJECT.
  2. Adding just node_modules and .vscode to the .dockerignore file worked.

Thanks a lot!

1 Like