# error Command "start" not found

**URL:** <https://community.fly.io/t/error-command-start-not-found/12826>\
**Category:** Build debugging\
**Created:** [May 10, 2023, 6:32pm UTC](https://community.fly.io/t/error-command-start-not-found/12826 "2023-05-10T18:32:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrii](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/andrii/32/16326_2.png) [@andrii](https://community.fly.io/u/andrii)\
**Post date:** [May 10, 2023, 6:32pm UTC](https://community.fly.io/t/error-command-start-not-found/12826/1 "2023-05-10T18:32:27Z")

</div>

Hello, I’m trying to run Node.js app on [Fly.io](http://Fly.io).  
I receive this error: “error Command “start” not found”

 ![Screenshot 2023-05-10 at 8.28.09 PM](https://global.discourse-cdn.com/fly1/original/3X/1/f/1fa1df07d067a2d4bcd3f908326c6bcbaaa316e8.png)

In my boilerplate I have packages/client “yarn run start” and packages/server “yarn dev”.  
How to specify it for [fly.io](http://fly.io)?

---

<div class="post-metadata">

**Author:** ![rubys](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/rubys/32/16907_2.png) [@rubys](https://community.fly.io/u/rubys)\
**Post date:** [May 10, 2023, 7:45pm UTC](https://community.fly.io/t/error-command-start-not-found/12826/2 "2023-05-10T19:45:24Z")

</div>

> [@andrii](#):
>
> In my boilerplate I have packages/client “yarn run start” and packages/server “yarn dev”.  
> How to specify it for [fly.io](http://fly.io)?

Can you share more information about this boilerplate? Did this come from some sort of framework?

I’m guessing that during development you start the client and run the server in dev mode, but for production you build the client and start the server?

If I can get more information I can be more helpful.

---

<div class="post-metadata">

**Author:** ![andrii](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/andrii/32/16326_2.png) [@andrii](https://community.fly.io/u/andrii)\
**Post date:** [May 11, 2023, 12:34pm UTC](https://community.fly.io/t/error-command-start-not-found/12826/3 "2023-05-11T12:34:12Z")

</div>

So, now I get this error.  
[Error: Yarn install error]

```auto
Yarn install error: Yarn command finished with a non-zero exit code: exit status: 1

ERROR: failed to build: exit status 1

Error: failed to fetch an image or build from source: executing lifecycle: failed with status code: 51

```

 ![Screenshot 2023-05-11 at 2.26.37 PM](https://global.discourse-cdn.com/fly1/original/3X/a/9/a903cddf619488e77efd2c153ea7d743a1341c58.png)

---

<div class="post-metadata">

**Author:** ![andrii](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/andrii/32/16326_2.png) [@andrii](https://community.fly.io/u/andrii)\
**Post date:** [May 11, 2023, 1:11pm UTC](https://community.fly.io/t/error-command-start-not-found/12826/4 "2023-05-11T13:11:12Z")

</div>

Here is my fly.toml

```auto
# fly.toml app configuration file generated for summer-cloud-9028 on 2023-05-11T14:52:41+02:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "[hidden]"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[build]
  builder = "heroku/buildpacks:20"

[env]
  NODE_ENV = "production"
  PORT = "8080"
  # The following ENVs are not listed here because they are registered as secrets:
  # MYSQL_HOST
  # MYSQL_PORT
  # MYSQL_DATABASE
  # MYSQL_USER
  # MYSQL_PASSWORD

[deploy]
  release_command = "yarn knex migrate:latest"

[experimental]
  allowed_public_ports = []
  auto_rollback = true

[[services]]
  http_checks = []
  internal_port = 8080
  processes = ["app"]
  protocol = "tcp"
  script_checks = []
  [services.concurrency]
    hard_limit = 25
    soft_limit = 20
    type = "connections"

  [[services.ports]]
    force_https = true
    handlers = ["http"]
    port = 80

  [[services.ports]]
    handlers = ["tls", "http"]
    port = 443

  [[services.tcp_checks]]
    grace_period = "1s"
    interval = "15s"
    restart_limit = 0
    timeout = "2s"

```

---

<div class="post-metadata">

**Author:** ![rubys](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/rubys/32/16907_2.png) [@rubys](https://community.fly.io/u/rubys)\
**Post date:** [May 11, 2023, 1:18pm UTC](https://community.fly.io/t/error-command-start-not-found/12826/5 "2023-05-11T13:18:55Z")

</div>

Try adding `--legacy-peer-deps` to the line(s) in your Dockerfile that `RUN yarn install`.

---

<div class="post-metadata">

**Author:** ![andrii](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/andrii/32/16326_2.png) [@andrii](https://community.fly.io/u/andrii)\
**Post date:** [May 11, 2023, 1:29pm UTC](https://community.fly.io/t/error-command-start-not-found/12826/6 "2023-05-11T13:29:42Z")

</div>

Ok! But, seems I deleted Dockerfile, how to reinstall it?  
Seems the buildpack takes care of that - so I don’t need Dockerfile with this setup…

---

<div class="post-metadata">

**Author:** ![andrii](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/andrii/32/16326_2.png) [@andrii](https://community.fly.io/u/andrii)\
**Post date:** [May 11, 2023, 3:30pm UTC](https://community.fly.io/t/error-command-start-not-found/12826/7 "2023-05-11T15:30:38Z")

</div>

Now getting this

```auto
=> ERROR [build 5/5] RUN yarn install --production=true 0.7s 
------                                                                               
 > [build 5/5] RUN yarn install --production=true:                                   
#12 0.701 Unknown Syntax Error: Invalid option name ("--production=true").           
#12 0.701 
#12 0.701 $ yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds] [--mode #0]
------
Error: failed to fetch an image or build from source: error building: executor failed running [/bin/sh -c yarn install --production=true]: exit code: 1

```
