Skip to content

CLI install can fail with no error message #12192

@lee-b

Description

@lee-b

Before submitting your bug report

Relevant environment info

- OS: Linux

Description

The CLI install script can exit with no more explanation than "Installation failed. Cleaning up":

==> Found Node.js v22.22.2
+ version_gte 22.22.2 20.20.1
++ printf '%s\n' 20.20.1 22.22.2
++ sort -V
++ head -n1
+ '[' 20.20.1 = 20.20.1 ']'
+ success 'Node.js meets requirements (>= v20.20.1)'
+ printf '\033[0;32m==>\033[0m \033[1m%s\033[0m\n' 'Node.js meets requirements (>= v20.20.1)'
==> Node.js meets requirements (>= v20.20.1)
+ return 0
+ setup_npm_path
+ local npm_bin
++ npm config get prefix
+ npm_bin=/bin
+ cleanup
+ local exit_code=127
+ '[' 127 -ne 0 ']'
+ warn 'Installation failed. Cleaning up...'
+ printf '\033[1;33m==> Warning:\033[0m %s\n' 'Installation failed. Cleaning up...'
==> Warning: Installation failed. Cleaning up...
+ '[' false = true ']'
+ exit 127

Seems that the nodejs package was only partially installed in this case, and npm was missing.

To reproduce

No response

Log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:installationRelates to the installation processkind:bugIndicates an unexpected problem or unintended behavioros:linuxHappening specifically on Linux

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions