nodejs/build

Missing `npx` command in machines

mcollina opened this issue · 2 comments

When running the CITGM job, the npx command is not available sometimes:

https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/3444/nodes=win-vs2022/testReport/junit/(root)/citgm/pino_v9_1_0/

How is it possible?

Because the job does this on Windows to create the Node.js "install":

call vcbuild release nosign x64
if %errorlevel% neq 0 exit /b %errorlevel%
echo on

set "PATH=%WORKSPACE%\node\Release;%PATH%"

mkdir Release\node_modules
robocopy /e deps\npm Release\node_modules\npm
copy deps\npm\bin\npm.cmd Release
cd ..

I've added

copy deps\npm\bin\npx.cmd Release

Test build: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/3446/nodes=win-vs2022/

Test build: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/3446/nodes=win-vs2022/

I think this is now fixed -- at least Pino passed on that build.