Please install Nodejs v18 - new builds are failing, looks like Node 18 is missing

Michael Krufky's Avatar

Michael Krufky

21 Apr, 2022 10:02 PM

As shown in the following build:
Environment: nodejs_version=18

Build started
git clone -q --branch=node.18 C:\projects\nan
git checkout -qf 4be3e5c4e93ddf2014b71ad9717078d76c9ed549
Running Install scripts
Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)
Updating Node.js v18.0.0 (x86)
Uninstalling Node.js v8.17.0 (x86)...
Installing Node.js v18.0.0 (x86)...
Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (404) Not Found."
At C:\Program Files\AppVeyor\BuildAgent\Modules\nodejs-utils\nodejs-utils.psm1:58 char:5
+ (New-Object Net.WebClient).DownloadFile($packageUrl, $packageFile ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException
IF %nodejs_version% LSS 4 npm -g install npm@2
IF %nodejs_version% EQU 5 npm -g install npm@3
npm install
'npm' is not recognized as an internal or external command,
operable program or batch file.
Command exited with code 1

  1. Support Staff 1 Posted by Feodor Fitsner on 21 Apr, 2022 11:54 PM

    Feodor Fitsner's Avatar

    Working on that.

    Btw, as I can see there is no x86 build of Node 18.x anymore, so you should be good if you change it to:

    Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) x64
  2. 2 Posted by Michael Krufkly on 22 Apr, 2022 01:12 PM

    Michael Krufkly's Avatar

    Thank you for your quick response! Unfortunately, this did not solve the issue:

    Any more suggestions? ...or should I try to push the Node.js team to release the x86 binary?

    Thanks again! :-)

  3. Support Staff 3 Posted by Feodor Fitsner on 22 Apr, 2022 02:35 PM

    Feodor Fitsner's Avatar

    I'm not sure - it doesn't look like AppVeyor issue anymore. For the start, you may try bumping node-gyp version to something more recent (package.json was last updated 9 months ago):

    Then, perhaps, it could be some options to disable native lib build for x86 platform.

  4. 4 Posted by Michael Krufky on 24 Apr, 2022 06:20 PM

    Michael Krufky's Avatar

    Bumping node-gyp did the trick! Thanks!

  5. Support Staff 5 Posted by Feodor Fitsner on 24 Apr, 2022 07:40 PM

    Feodor Fitsner's Avatar

    Sounds good, thanks for the update!

  6. Feodor Fitsner closed this discussion on 24 Jun, 2022 09:02 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac