Skip to content

Installer fails when Node.js is installed from NodeSource #1

Description

@CaringStark

Environment

  • Ubuntu 24.04 (WSL2)
  • Node.js 20.20.2 (NodeSource)
  • npm 10.8.2

Problem

The installer attempts to install both nodejs and npm via apt.

When Node.js has already been installed from the NodeSource repository, npm is already included. Ubuntu's npm package conflicts with the existing nodejs package, causing apt to abort before the installer completes.

Error: Unable to correct problems, you have held broken packages.

Suggested improvement

Only install npm when it is not already available in PATH.

This would allow the installer to work correctly on systems using the official NodeSource packages while preserving the current behavior for fresh Ubuntu installations.

Result

After making this change locally, the installer completed successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions