Trouble building at netlify

First (unrelated), I could not install the Node.js dependencies:

$ npm ci

npm WARN old lockfile 
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile 
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile 
npm ERR! code 1
npm ERR! path /home/jmooring/temp/jan.limpens.com-hugo/node_modules/esbuild
npm ERR! command failed
npm ERR! command sh -c node install.js

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jmooring/.npm/_logs/2023-05-27T17_49_16_326Z-debug-0.log

Second, when I increase the timeout the site builds without errors:

site config

timeout = '10m' 
                   | PT-BR  
-------------------+--------
  Pages            |   137  
  Paginator pages  |    21  
  Non-page files   |   646  
  Static files     |    19  
  Processed images |  1598  
  Aliases          |    25  
  Sitemaps         |     1  
  Cleaned          |     0  

Total in 106311 ms