Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Netlify CLI crashed unexpectedly while computer was locked

Aperta
#8,615 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
nodejs, typescript
Ambito
cli

Direzione di ricerca

The crash comes from chokidar's watch setup, shown in the stack trace at createFsWatchInstance and _handleFile, reached while netlify dev watches public/images/Rampensau_1.heic on Windows. Start by finding where the dev command creates its file watcher and where the watcher's error events are handled. Reproducing it needs a locked file on Windows, so a unit test that makes the watcher emit EBUSY is probably the practical route. Done means a locked file logs a warning and the dev server keeps running.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

type: bug
Describe the bug

Netlify CLI crashed unexpectedly. It produced the following error message and advised me to post it here

Error: EBUSY: resource busy or locked, watch 'C:\Users\lorin\Documents\Github\jolomagic\public\images\Rampensau_1.heic'
at FSWatcher. (node:internal/fs/watchers:323:19)
at Object.watch (node:fs:2608:36)
at createFsWatchInstance (C:\Users\lorin\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\chokidar\lib\nodefs-handler.js:119:15)
at setFsWatchListener (C:\Users\lorin\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\chokidar\lib\nodefs-handler.js:166:15)
at NodeFsHandler._watchWithNodeFs (C:\Users\lorin\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\chokidar\lib\nodefs-handler.js:331:14)
at NodeFsHandler._handleFile (C:\Users\lorin\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\chokidar\lib\nodefs-handler.js:395:23)
at NodeFsHandler._addToNodeFs (C:\Users\lorin\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\chokidar\lib\nodefs-handler.js:637:21)

System:
OS: Windows 11 10.0.26300
CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
Binaries:
Node: 24.21.0 - C:\Program Files\nodejs\node.EXE
npm: 11.19.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Chromium (152.0.4191.53)

Steps to reproduce
  1. run netlify dev
  2. use it
  3. let it sit for a while (laptop was locked in the meantime)
  4. open vs code again
  5. see that CLI exited with an error
Configuration

[build]
functions = "/scripts/server"
command = "node scripts/build/version.js && node scripts/build/indexImages.js && node scripts/build/referencesImages.js && node scripts/build/injected.js"

Environment

System:
OS: Windows 11 10.0.26300
CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
Memory: 1.25 GB / 15.80 GB
Binaries:
Node: 24.21.0 - C:\Program Files\nodejs\node.EXE
npm: 11.19.0 - C:\Program Files\nodejs\npm.CMD

Lingua principale
TypeScript
Stelle
1.9k
Fork
480
Merge medio
1g 9h
PR unite (30g)
60

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di netlify/cli

Tutte le issue di netlify/cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.