netlify / cli

Netlify Command Line Interface
http://cli.netlify.com
MIT License
1.57k stars 351 forks source link

"Error: Netlify CLI has terminated unexpectedly This is a problem with the Netlify CLI, not with your application" #6407

Open evanescente-ondine opened 7 months ago

evanescente-ondine commented 7 months ago

Describe the bug

Logging into your Netlify account...
Opening https://app.netlify.com/authorize?response_type=ticket&ticket=d2bcb12d06c97ec944193db384c3fd78
⠋ Waiting for authorization...
 ›   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.

⠋ Waiting for authorization...Error: spawn chromium --enable-features=UseOzonePlatform --ozone-platform=wayland ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:284:19)
    at onErrorNT (node:internal/child_process:477:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

  System:
    OS: Linux 6.6 Debian GNU/Linux trixie/sid
    CPU: (6) x64 AMD FX(tm)-6100 Six-Core Processor
  Binaries:
    Node: 18.19.0 - /usr/local/bin/node
    npm: 10.4.0 - /usr/local/bin/npm
  Browsers:
    Firefox: 115.7.0esr
  npmGlobalPackages:
    netlify-cli: 17.17.0

Steps to reproduce

netlify init, netlify login, netlify deploy, all of these commands that require authentification and/or linking the folder to a repository, cause that message. No window open, with firefox or chromium. And using the URL to authentify on netlify.com has no effect whatsoever. I do it, and it's like nothing happened.

Configuration

I have none, because I can't link the folder with my repository.

Environment

System: OS: Linux 6.6 Debian GNU/Linux trixie/sid CPU: (6) x64 AMD FX(tm)-6100 Six-Core Processor Memory: 6.10 GB / 7.75 GB Container: Yes Shell: 3.7.0 - /usr/bin/fish Binaries: Node: 18.19.0 - /usr/local/bin/node npm: 10.4.0 - /usr/local/bin/npm npmGlobalPackages: netlify-cli: 17.17.0

SylvainGibert commented 6 months ago

have you found a solution ? i had the same problem today with netlify-cli: 17.19.5 node 21.6.0

using yarn 1.22.19

ashesashes commented 6 months ago

Same issue with [v17.21.2] Node: 21.5.0

ShaneFelthamGitHub commented 4 months ago

Same issue here with multiple versions of netlify-cli as I rolled back versions as per the message. Node v20.11.1