devonfw / IDEasy

Tool to automate the setup and updates of a development environment for any project (Successor of devonfw-ide).
Apache License 2.0
7 stars 18 forks source link

NpmUrlUpdater buggy - missing new npm versions in ide-urls #435

Closed hohwille closed 4 days ago

hohwille commented 4 days ago

Expected behavior

As a devonfw-ide or IDEAsy user, I want to be able to get latest npm versions so that I can install them automatically and benefit from latest features and fixes of npm.

Actual behavior

10.x versions of npm are missing: https://github.com/devonfw/ide-urls/tree/master/npm/npm

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. devon npm version set 10.2.3
  2. devon npm setup

Comments/Hints:

Version pattern may be wrong: https://github.com/devonfw/IDEasy/blob/df74a36cdfb0a6ae614951335abcf6e897fe8787/cli/src/main/java/com/devonfw/tools/ide/tool/npm/NpmUrlUpdater.java#L34

Also it does not make sense to use WebsiteUrlUpdater to parse versions from JSON. I got a request for version 10.2.3 that is supposed to be missing from a devonfw-ide user (PV). Interesting is that this version also not present in https://registry.npmjs.org/npm/ however, some 10.x versions can be found there but they are still missing in ide-urls. IMHO NpmUrlUpdater is broken and has to be re-implemented.

Affected version: