chocolatey-community/chocolatey-packages

(nodejs)(nodejs.install) Outdated

Closed this issue · 4 comments

Checklist

  • I have checked the moderation queue that no new version has been submitted (only visible when logged in), or the submitted package version has failed the automated checks.

Please navigate to the following link to view the moderation queue.

  • I have verified that the new version is a stable release.
  • I have looked to see if there are any Bug reports that prevents a new version being submitted and that no existing Outdated Reports have been created.
  • I have verified the new version has a Windows binary (EXE or MSI installer, Zip or other archive, etc).
  • I have verified that this is the correct repository, and the package is maintained by the chocolatey-community user.

New Software Version

20.12.1 and 21.7.2

Download location

https://nodejs.org/en/download

Package Page

https://community.chocolatey.org/packages/nodejs

The Update-AUPackages.md lists the error message

au_GetLatest failed; The 64bit executable is the same as the 32bit

(this is also true for the package nodejs.install)

I did a little analysis of the nodejs.install/update.ps1 script:

  • the message The 64bit executable is the same as the 32bit is shown when the $url32 and $url64 are equal
  • they are both empty because parsing of the content from https://nodejs.org/en/download didnt return the expacted result
  • nodejs changed their download page in a way that requires to change the update.ps1

@michha are you in a position to submit a PR to fix this?

The current website seems to be much harder to parse than it was. My first thought was to reach out to the nodejs team if they have a json file on their website. That would make it much easer to get the correct download links.