tag:help.appveyor.com,2012-11-13:/discussions/problems/31957-please-install-nodejs-v18-new-builds-are-failing-looks-like-node-18-is-missingAppVeyor: Discussion 2022-06-24T21:02:09Ztag:help.appveyor.com,2012-11-13:Comment/539554922022-04-21T22:02:57Z2022-04-21T22:02:58ZPlease install Nodejs v18 - new builds are failing, looks like Node 18 is missing<div><p>As shown in the following build:<br>
<a href="https://ci.appveyor.com/project/mkrufky/nan/build/job/4u6vpbyhhe95q3ii">https://ci.appveyor.com/project/mkrufky/nan/build/job/4u6vpbyhhe95q3ii</a><br></p>
<pre>
<code>Environment: nodejs_version=18<br><br>
<br>Build started
git clone -q --branch=node.18 https://github.com/mkrufky/nan.git 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<br><br>
<br>IF %nodejs_version% LSS 4 npm -g install npm@2
IF %nodejs_version% EQU 5 npm -g install npm@3
set PATH=%APPDATA%\npm;%PATH%
npm install
'npm' is not recognized as an internal or external command,
operable program or batch file.
Command exited with code 1</code>
</pre></div>Michael Krufkytag:help.appveyor.com,2012-11-13:Comment/539554922022-04-21T23:54:51Z2022-04-21T23:54:51ZPlease install Nodejs v18 - new builds are failing, looks like Node 18 is missing<div><p>Working on that.</p>
<p>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:</p>
<pre>
<code>Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) x64</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/539554922022-04-22T13:12:52Z2022-04-22T13:12:52ZPlease install Nodejs v18 - new builds are failing, looks like Node 18 is missing<div><p>Thank you for your quick response! Unfortunately, this did not solve the issue:</p>
<p><a href="https://ci.appveyor.com/project/mkrufky/nan/build/job/8mxnrbybvqij6bss">https://ci.appveyor.com/project/mkrufky/nan/build/job/8mxnrbybvqij6bss</a></p>
<p>Any more suggestions? ...or should I try to push the Node.js team to release the x86 binary?</p>
<p>Thanks again! :-)</p></div>Michael Krufklytag:help.appveyor.com,2012-11-13:Comment/539554922022-04-22T14:35:41Z2022-04-22T14:35:41ZPlease install Nodejs v18 - new builds are failing, looks like Node 18 is missing<div><p>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 (<code>package.json</code> was last updated 9 months ago): <a href="https://github.com/mkrufky/nan/blob/4be3e5c4e93ddf2014b71ad9717078d76c9ed549/package.json#L31">https://github.com/mkrufky/nan/blob/4be3e5c4e93ddf2014b71ad9717078d...</a></p>
<p>Then, perhaps, it could be some options to disable native lib build for x86 platform.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/539554922022-04-24T18:20:49Z2022-04-24T18:20:50ZPlease install Nodejs v18 - new builds are failing, looks like Node 18 is missing<div><p>Bumping node-gyp did the trick! Thanks!</p></div>Michael Krufkytag:help.appveyor.com,2012-11-13:Comment/539554922022-04-24T19:40:05Z2022-04-24T19:40:05ZPlease install Nodejs v18 - new builds are failing, looks like Node 18 is missing<div><p>Sounds good, thanks for the update!</p></div>Feodor Fitsner