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.
Environment
Problem
The installer attempts to install both
nodejsandnpmviaapt.When Node.js has already been installed from the NodeSource repository,
npmis already included. Ubuntu'snpmpackage conflicts with the existingnodejspackage, causingaptto abort before the installer completes.Error: Unable to correct problems, you have held broken packages.
Suggested improvement
Only install
npmwhen it is not already available inPATH.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.