Migration and build frontend trouble

Hi all! I have trouble to migrate to today last version from 24.7.1. I use as “registry” local hosted nexus repository which is proxy to http://registry.npmjs.org. Maven phase — vaadin:24.7.3:build-frontend (default) @ reindeer-dance — failed

[ERROR] Command `C:\home\.vaadin\node\npm.cmd --no-update-notifier --no-audit --scripts-prepend-node-path=true --ignore-scripts install` failed:                                                                                                    
npm warn Unknown cli config "--scripts-prepend-node-path". This will stop working in the next major version of npm.                                                                                                                                 
npm warn ERESOLVE overriding peer dependency                                                                                                                                                                                                        
npm warn While resolving: @vaadin/react-components-pro@24.7.5                                                                                                                                                                                       
npm warn Found: @types/react@18.3.20                                                                                                                                                                                                                
npm warn node_modules/@types/react                                                                                                                                                                                                                  
npm warn   dev @types/react@"18.3.20" from the root project                                                                                                                                                                                         
npm warn   3 more (@lit/react, @types/react-dom, @vaadin/react-components)                                                                                                                                                                          
npm warn                                                                                                                                                                                                                                            
npm warn Could not resolve dependency:                                                                                                                                                                                                              
npm warn peerOptional @types/react@"^18.2.37 || ^19" from @vaadin/react-components-pro@24.7.5                                                                                                                                                       
npm warn node_modules/@vaadin/react-components-pro                                                                                                                                                                                                  
npm warn   @vaadin/react-components-pro@"24.7.5" from the root project                                                                                                                                                                              
npm warn ERESOLVE overriding peer dependency                                                                                                                                                                                                        
npm warn While resolving: @vaadin/react-components-pro@24.7.5                                                                                                                                                                                       
npm warn Found: @types/react-dom@18.3.6                                                                                                                                                                                                             
npm warn node_modules/@types/react-dom                                                                                                                                                                                                              
npm warn   dev @types/react-dom@"18.3.6" from the root project                                                                                                                                                                                      
npm warn   1 more (@vaadin/react-components)                                                                                                                                                                                                        
npm warn                                                                                                                                                                                                                                            
npm warn Could not resolve dependency:                                                                                                                                                                                                              
npm warn peerOptional @types/react-dom@"^18.2.15 || ^19" from @vaadin/react-components-pro@24.7.5                                                                                                                                                   
npm warn node_modules/@vaadin/react-components-pro                                                                                                                                                                                                  
npm warn   @vaadin/react-components-pro@"24.7.5" from the root project                                                                                                                                                                              
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.  
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported                                                                                                                                                                   
npm warn deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead                                                                                                                                                           
npm error Exit handler never called!                                                                                                                                                                                                                
npm error This is an error with npm itself. Please report this error at:                                                                                                                                                                            
npm error   <https://github.com/npm/cli/issues>                                                                                                                                                                                                     

How to solve this problem?
Tahnks

Are you using a custom node installation or the one Vaadin uses? What is the node version?

It looks like the only error is
“npm error Exit handler never called!”
which doesn’t say much except there is at least one similar sounding node issue that was resolved in node 22.5.1: [BUG] Exit handler never called during clean-install, with Node.js v22.5.0 · Issue #7657 · npm/cli · GitHub

There is also "cb() never called? Exit handler never called? I'm having the same problem!" · npm/cli Wiki · GitHub saying that the problem might be related to the environment somehow

I use standard node v22.14.0 and npm v11.3.0 which downloaded by vaadin

Detailed log records:

1356 silly tarball no local data for @vaadin/side-nav@https://nexus-repo:8081/@vaadin/side-nav/-/side-nav-24.7.5.tgz. Extracting by manifest.
1357 http cache @babel/code-frame@https://nexus-repo:8081/@babel/code-frame/-/code-frame-7.26.2.tgz 0ms (cache hit)
1358 silly tarball no local data for @lit/reactive-element@https://nexus-repo:8081/@lit/reactive-element/-/reactive-element-2.1.0.tgz. Extracting by manifest.
1359 http fetch GET https://nexus-repo:8081/use-sync-external-store/-/use-sync-external-store-1.5.0.tgz attempt 1 failed with ERR_SSL_WRONG_VERSION_NUMBER
1360 http fetch GET https://nexus-repo:8081/react-refresh/-/react-refresh-0.17.0.tgz attempt 1 failed with ERR_SSL_WRONG_VERSION_NUMBER
1361 http fetch GET https://nexus-repo:8081/rollup/-/rollup-4.40.1.tgz attempt 1 failed with ERR_SSL_WRONG_VERSION_NUMBER
1362 http fetch GET https://nexus-repo:8081/unicorn-magic/-/unicorn-magic-0.3.0.tgz attempt 1 failed with ERR_SSL_WRONG_VERSION_NUMBER
1363 http fetch GET https://nexus-repo:8081/tinyglobby/-/tinyglobby-0.2.13.tgz attempt 1 failed with ERR_SSL_WRONG_VERSION_NUMBER
1364 http fetch GET https://nexus-repo:8081/vite-plugin-checker/-/vite-plugin-checker-0.9.1.tgz attempt 1 failed with ERR_SSL_WRONG_VERSION_NUMBER
1365 http fetch GET https://nexus-repo:8081/xml-utils/-/xml-utils-1.10.2.tgz attempt 1 failed with ERR_SSL_WRONG_VERSION_NUMBER
1366 http fetch GET https://nexus-repo:8081/vite/-/vite-6.3.3.tgz attempt 1 failed with ERR_SSL_WRONG_VERSION_NUMBER
1367 http fetch GET https://nexus-repo:8081/react-router/-/react-router-7.5.2.tgz attempt 1 failed with ERR_SSL_WRONG_VERSION_NUMBER
1368 http fetch GET https://nexus-repo:8081/lit-html/-/lit-html-3.3.0.tgz attempt 1 failed with ERR_SSL_WRONG_VERSION_NUMBER
1369 http fetch GET https://nexus-repo:8081/lit/-/lit-3.3.0.tgz attempt 1 failed with ERR_SSL_WRONG_VERSION_NUMBER
1370 http fetch GET https://nexus-repo:8081/lit-element/-/lit-element-4.2.0.tgz attempt 1 failed with ERR_SSL_WRONG_VERSION_NUMBER
1371 http fetch GET https://nexus-repo:8081/esbuild/-/esbuild-0.25.3.tgz attempt 1 failed with ERR_SSL_WRONG_VERSION_NUMBER
1372 http fetch GET https://nexus-repo:8081/glob/-/glob-11.0.2.tgz attempt 1 failed with ERR_SSL_WRONG_VERSION_NUMBER
1373 http fetch GET https://nexus-repo:8081/fdir/-/fdir-6.4.4.tgz attempt 1 failed with ERR_SSL_WRONG_VERSION_NUMBER

npm try download libraries from wrong path. My .npmrc file:

registry=http://nexus-repo:8081/repository/registry.npmjs.org-proxy/
#strict-ssl=false