You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How often does it reproduce? Is there a required condition?
Every time
What is the expected behavior? Why is that the expected behavior?
All dependencies should be installed without error.
What do you see instead?
It fails on a step where it tries to get nodejs headers.
C:\Users\user1\Git\frontend>npm install
npm ERR! code 1
npm ERR! path C:\Users\user1\Git\frontend\node_modules\deasync
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node ./build.js
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.4 found at "C:\Python310\python.exe"
npm ERR! gyp http GET https://nodejs.org/download/release/v18.16.0/node-v18.16.0-headers.tar.gz
npm ERR! gyp WARN install got an error, rolling back install
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack FetchError: request to https://nodejs.org/download/release/v18.16.0/node-v18.16.0-headers.tar.gz failed, reason: self-signed certificate in certificate chain
npm ERR! gyp ERR! stack at ClientRequest.<anonymous> (C:\Users\user1\Git\frontend\node_modules\minipass-fetch\lib\index.js:130:14)
npm ERR! gyp ERR! stack at ClientRequest.emit (node:events:513:28)
npm ERR! gyp ERR! stack at TLSSocket.socketErrorListener (node:_http_client:502:9)
npm ERR! gyp ERR! stack at TLSSocket.emit (node:events:525:35)
npm ERR! gyp ERR! stack at emitErrorNT (node:internal/streams/destroy:151:8)
npm ERR! gyp ERR! stack at emitErrorCloseNT (node:internal/streams/destroy:116:3)
npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
npm ERR! gyp ERR! System Windows_NT 10.0.19045
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\user1\\Git\\frontend\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\user1\Git\frontend\node_modules\deasync
npm ERR! gyp ERR! node -v v18.16.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok
npm ERR! Build failed
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user1\AppData\Local\npm-cache\_logs\2023-05-02T05_19_59_225Z-debug-0.log
Additional information
When I switch back to using node v18.14.2 everything is being installed correctly. I've tried to skim though the changes in v18.15.0, but couldn't find anything obvious.
I get the same result with v18.16.0.
Edit:
I just tried to do ...\node-gyp\bin>node node-gyp.js install and get the same issue on 18.14.2, so it seems like some dependencies act differently between v18.14.2 and v18.15+
The text was updated successfully, but these errors were encountered:
I don't think there were changes between node v18.14.2 and v18.15.0 that could be responsible but if you have a small test case (no third-party dependencies) that shows otherwise, we can take a look.
@msci-victor
I created a package.json file with the following dependencies and ran npm install. However, I was not able to reproduce the issue with the latest versions of Node.js (23.0.0, 22.9.0, 20.18.0, and 18.20.4). Could you provide the steps to reproduce the issue locally?
Version
v18.5.0
Platform
Microsoft Windows NT 10.0.19045.0
Subsystem
No response
What steps will reproduce the bug?
Doing npm install or yarn install
How often does it reproduce? Is there a required condition?
Every time
What is the expected behavior? Why is that the expected behavior?
All dependencies should be installed without error.
What do you see instead?
It fails on a step where it tries to get nodejs headers.
Additional information
When I switch back to using node v18.14.2 everything is being installed correctly. I've tried to skim though the changes in v18.15.0, but couldn't find anything obvious.
I get the same result with v18.16.0.
Edit:
I just tried to do
...\node-gyp\bin>node node-gyp.js install
and get the same issue on 18.14.2, so it seems like some dependencies act differently between v18.14.2 and v18.15+The text was updated successfully, but these errors were encountered: