Skip to content

ESRCH on any command run from netlify dev (macos) #706

@valyrie97

Description

@valyrie97

- Do you want to request a feature or report a bug?
Bug

- What is the current behavior?

❯ yarn netlify dev
yarn run v1.22.0
$ netlify dev
◈ Netlify Dev ◈
◈ Starting Netlify Dev with undefined
Waiting for localhost:8080.netlify.toml	node_modules	package.json	yarn-error.log	yarn.lock
◈ Error while killing child process: kill ESRCH
✨  Done in 0.90s.

- If the current behavior is a bug, please provide the steps to reproduce.

mkdir test
cd test
yarn init # do the prompts
yarn add netlify-cli

netlify.toml

[dev]
  command = "ls"

package.json

{
  ...
  "scripts": {
    "netlify": "netlify"
  }
  ...
}

Then run

yarn netlify dev

- What is the expected behavior?

netlify will list directories and serve nothing, but not break.

- Local Environment Information

❯ yarn netlify status --verbose
yarn run v1.22.0
$ netlify status --verbose
──────────────────────┐
 Current Netlify User │
──────────────────────┘
Name:  Marcus Gosselin
Email: [email protected]
Teams:
  Trevor Gionet's team:   Collaborator
  Marcus Gosselin's team: Collaborator
 ›   Warning: Did you run `netlify link` yet?
 ›   Error: You don't appear to be in a folder that is linked to a site
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

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