tag:help.appveyor.com,2012-11-13:/discussions/problems/18115-nodejs-11-node-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-fileAppVeyor: Discussion 2019-06-27T05:27:35Ztag:help.appveyor.com,2012-11-13:Comment/465149882018-11-18T02:16:31Z2018-11-18T02:18:15ZNode.js 11: 'node' is not recognized as an internal or external command, operable program or batch file.<div><p>After updating to Node.js 11, I get the following error:<br></p>
<pre>
<code>'node' is not recognized as an internal or external command, operable program or batch file.</code>
</pre>
<p>How to reproduce:<br></p>
<pre>
<code>Update-NodeJsInstallation (Get-NodeJsLatestBuild 11)
node --version</code>
</pre>
<p>Full <code>.appveyor.yml</code> file: <a href="https://github.com/westy92/html-pdf-chrome/blob/e550bde3d62427e6b468b7435e82449ee2c35a15/.appveyor.yml">https://github.com/westy92/html-pdf-chrome/blob/e550bde3d62427e6b46...</a></p>
<p>Logs: <a href="https://ci.appveyor.com/project/westy92/html-pdf-chrome/builds/20355552/job/caymj891iwgb168a">https://ci.appveyor.com/project/westy92/html-pdf-chrome/builds/2035...</a></p>
<p>I tried adding <code>refreshenv</code>, but that did not help.</p></div>westy92tag:help.appveyor.com,2012-11-13:Comment/465149882018-11-19T09:20:52Z2018-11-19T09:20:52ZNode.js 11: 'node' is not recognized as an internal or external command, operable program or batch file.<div><p>Please use <code>Install-Product node 11</code> instead of <code>Update-NodeJsInstallation</code>. Sorry for confusion.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/465149882018-12-03T17:22:55Z2018-12-03T17:30:40ZNode.js 11: 'node' is not recognized as an internal or external command, operable program or batch file.<div><p>This does not work when you need a specific version of Node.js.<br>
<code>Update-NodeJsInstallation 11.3.0 x64</code> appears to install Node.js but its not recognized. <a href="https://ci.appveyor.com/project/agracio/edge-js/build/job/slov6ui1c0kqrg5t">https://ci.appveyor.com/project/agracio/edge-js/build/job/slov6ui1c...</a></p>
<p>All other Node.js versions appear to work fine: <a href="https://ci.appveyor.com/project/agracio/edge-js">https://ci.appveyor.com/project/agracio/edge-js</a>.</p>
<p>Update:<br>
Appveyor config file can be found here: <a href="https://github.com/agracio/edge-js/blob/master/appveyor.yml">https://github.com/agracio/edge-js/blob/master/appveyor.yml</a>.<br>
The reason for using <code>Update-NodeJsInstallation $env:nodejs_version x64</code> and not <code>Install-Product node $env:nodejs_version x64</code> is due to the fact that versions 6.15.0, 8.14.0, 10.14.0 and 11.3.0 are not recognized by <code>Install-Product node</code></p></div>antonas.graciovastag:help.appveyor.com,2012-11-13:Comment/465149882018-12-08T08:19:09Z2018-12-08T08:19:09ZNode.js 11: 'node' is not recognized as an internal or external command, operable program or batch file.<div><p>I'm seeing this too.<br>
How do I specify a particular point-version of Node to use (11.4.0)?<br>
<code>Update-NodeJsInstallation</code> used to work.</p></div>David Hallstag:help.appveyor.com,2012-11-13:Comment/465149882018-12-08T23:53:34Z2018-12-08T23:53:36ZNode.js 11: 'node' is not recognized as an internal or external command, operable program or batch file.<div><p>Problem seems to be new Node versions don't support <code>NodePerfCtrSupport</code></p>
<p><a href="https://github.com/appveyor/ci/blob/master/scripts/nodejs-utils.psm1#L109">https://github.com/appveyor/ci/blob/master/scripts/nodejs-utils.psm...</a></p>
<p>If I remove <code>NodePerfCtrSupport</code> from the <code>msiexec</code> command then install succeeds.</p></div>David Hallstag:help.appveyor.com,2012-11-13:Comment/465149882018-12-09T07:56:37Z2018-12-09T07:56:39ZNode.js 11: 'node' is not recognized as an internal or external command, operable program or batch file.<div><p>This works until <code>Start-NodeJsInstallation</code> gets fixed:</p>
<pre>
<code> - ps: Remove-NodeJsInstallation $(Get-InstalledNodeJsVersion).version $(Get-InstalledNodeJsVersion).bitness
- ps: cmd /c start /wait msiexec /i $(Get-NodeJsInstallPackage $env:nodejs_version x64) /q</code>
</pre></div>David Halls