netlify / netlify/cli

Error: Netlify CLI has terminated unexpectedly.

Open
#8,381 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug
Dominant language
TypeScript
Stars
1.9k
Forks
474
Avg merge
23h 30m
Merged PRs (30d)
53

Description

Describe the bug

Error: EBUSY: resource busy or locked, watch 'E:\dev\atarfe-digital\dist\Atarfe Digital 1200x630\Atarfe Digital 1200x630 - Claro.png'
at FSWatcher. (node:internal/fs/watchers:323:19)
at watch (node:fs:3062:36)
at createFsWatchInstance (file:///C:/Users//AppData/Roaming/npm/node_modules/netlify-cli/node_modules/chokidar/esm/handler.js:126:16)
at setFsWatchListener (file:///C:/Users/
/AppData/Roaming/npm/node_modules/netlify-cli/node_modules/chokidar/esm/handler.js:171:19)
at NodeFsHandler._watchWithNodeFs (file:///C:/Users//AppData/Roaming/npm/node_modules/netlify-cli/node_modules/chokidar/esm/handler.js:325:22)
at NodeFsHandler._handleFile (file:///C:/Users/
/AppData/Roaming/npm/node_modules/netlify-cli/node_modules/chokidar/esm/handler.js:391:29)
at NodeFsHandler._addToNodeFs (file:///C:/Users/****/AppData/Roaming/npm/node_modules/netlify-cli/node_modules/chokidar/esm/handler.js:615:31)

System:
OS: Windows 10 10.0.19045
CPU: (4) x64 Intel(R) Core(TM) i3-4160 CPU @ 3.60GHz
Binaries:
Node: 26.4.0 - C:\Program Files\nodejs\node.EXE
npm: 11.17.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 150.0.7871.182
Edge: Chromium (150.0.4078.105)
Firefox: 152.0.5 - C:\Program Files\Mozilla Firefox\firefox.exe

Steps to reproduce

I just run netlify dev and this happens every time

Configuration

No response

Environment

netlify dev

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure through the netlify dev entry point on Windows 10 with the reported Node and npm versions. Read the stack trace through Node's filesystem watcher and the bundled chokidar handler; done means the CLI no longer terminates unexpectedly when watching the reported PNG path.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.