cli icon indicating copy to clipboard operation
cli copied to clipboard

Netlify CLI error

Open Essateric opened this issue 5 months ago • 3 comments

Describe the bug

This is a problem with the Netlify CLI, not with your application. If you recently updated the CLI, consider reverting to an older version by running:

npm install -g netlify-cli@VERSION

You can use any version from https://ntl.fyi/cli-versions.

Please report this problem at https://ntl.fyi/cli-error including the error details below.

» Error: Netlify CLI has terminated unexpectedly This is a problem with the Netlify CLI, not with your application. If you recently updated the CLI, consider reverting to an older version by running:

npm install -g netlify-cli@VERSION

You can use any version from https://ntl.fyi/cli-versions.

Please report this problem at https://ntl.fyi/cli-error including the error details below.

Error: EPERM: operation not permitted, unlink 'C:\Users\shabn\Documents\Chaiiwala\chaiiwala.netlify\functions-serve\sendAuditPdf\node_modules\bufferutil\prebuilds\win32-x64\bufferutil.node'

System: OS: Windows 11 10.0.26100 CPU: (8) x64 Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz Binaries: Node: 22.14.0 - C:\Program Files\nodejs\node.EXE npm: 11.3.0 - C:\Program Files\nodejs\npm.CMD Browsers: Edge: Chromium (140.0.3485.54)

Steps to reproduce

Run 'netlify dev'

Configuration

No response

Environment

0 verbose cli C:\Program Files\nodejs\node.exe C:\Users\shabn\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js 1 info using [email protected] 2 info using [email protected] 3 silly config load:file:C:\Users\shabn\AppData\Roaming\npm\node_modules\npm\npmrc 4 silly config load:file:C:\Users\shabn\Documents\Chaiiwala\chaiiwala.npmrc 5 silly config load:file:C:\Users\shabn.npmrc 6 silly config load:file:C:\Users\shabn\AppData\Roaming\npm\etc\npmrc 7 verbose title npm exec env info --system --binaries --npmPackages netlify-cli --npmGlobalPackages netlify-cli 8 verbose argv "exec" "--" "env" "info" "--system" "--binaries" "--npmPackages" "netlify-cli" "--npmGlobalPackages" "netlify-cli" 9 verbose logfile logs-max:10 dir:C:\Users\shabn\AppData\Local\npm-cache_logs\2025-09-16T11_43_32_799Z- 10 verbose logfile C:\Users\shabn\AppData\Local\npm-cache_logs\2025-09-16T11_43_32_799Z-debug-0.log 11 silly logfile start cleaning logs, removing 1 files 12 silly logfile done cleaning log files 13 silly packumentCache heap:2197815296 maxSize:549453824 maxEntrySize:274726912 14 verbose shrinkwrap failed to load node_modules/.package-lock.json missing from lockfile: node_modules/netlify-cli/node_modules/external-editor 15 http fetch GET 200 https://registry.npmjs.org/env 263ms (cache miss) 16 verbose stack Error: could not determine executable to run 16 verbose stack at getBinFromManifest (C:\Users\shabn\AppData\Roaming\npm\node_modules\npm\node_modules\libnpmexec\lib\get-bin-from-manifest.js:17:23) 16 verbose stack at exec (C:\Users\shabn\AppData\Roaming\npm\node_modules\npm\node_modules\libnpmexec\lib\index.js:205:15) 16 verbose stack at async Npm.exec (C:\Users\shabn\AppData\Roaming\npm\node_modules\npm\lib\npm.js:208:9) 16 verbose stack at async module.exports (C:\Users\shabn\AppData\Roaming\npm\node_modules\npm\lib\cli\entry.js:67:5) 17 verbose pkgid [email protected] 18 error could not determine executable to run 19 verbose cwd C:\Users\shabn\Documents\Chaiiwala\chaiiwala 20 verbose os Windows_NT 10.0.26100 21 verbose node v22.14.0 22 verbose npm v11.3.0 23 verbose exit 1 24 verbose code 1 25 error A complete log of this run can be found in: C:\Users\shabn\AppData\Local\npm-cache_logs\2025-09-16T11_43_32_799Z-debug-0.log

Essateric avatar Sep 16 '25 11:09 Essateric

Getting the exact same error. Only reverting does not help too, getting the same exact error as in this issue stated. Someone can help with this?

My system:

System:
    OS: macOS 15.7
    CPU: (14) arm64 Apple M4 Pro
  Binaries:
    Node: 22.19.0 - ~/.nvm/versions/node/v22.19.0/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v22.19.0/bin/yarn
    npm: 11.5.2 - ~/.nvm/versions/node/v22.19.0/bin/npm
  Browsers:
    Chrome: 140.0.7339.133
    Safari: 18.6
  npmGlobalPackages:
    netlify-cli: 23.4.3

Shooteger avatar Sep 17 '25 07:09 Shooteger

Same issue here since today...

System:

  • OS: macOS 15.6.1
  • CPU: Apple M4 (ARM64)
  • Browser: Chrome 140.0.7339.133

Node.js Versions Tested:

  • Node: 24.4.1 - ECONNRESET error
  • Node: 20.19.0 - ECONNRESET error
  • Node: 18.20.4 - ECONNRESET error

Netlify CLI Versions Tested:

Error Pattern:

Error: Netlify CLI has terminated unexpectedly
...
Request from ::1: GET /.netlify/functions/*
Response with status 200 in 14-26 ms.
Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:218:20)

Key Findings:

  1. Functions execute successfully (200 responses) before CLI crashes
  2. Issue persists across multiple Node.js versions (18.x, 20.x, 24.x)
  3. Issue persists across multiple CLI versions
  4. Cross-platform issue (Windows 11 + macOS 15.6.1)
  5. Appears related to Chromium-based browsers (Chrome 140, Edge Chromium 140)

chreble avatar Sep 17 '25 22:09 chreble

Same error.

Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:218:20)

  System:
    OS: macOS 26.0
    CPU: (10) arm64 Apple M1 Pro
  Binaries:
    Yarn: 4.9.2 - /opt/homebrew/bin/yarn
    npm: 10.9.2 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 140.0.7339.207
    Safari: 26.0
  npmGlobalPackages:
    netlify-cli: 23.7.3

Slgoetz avatar Sep 25 '25 13:09 Slgoetz