Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install msnodesqlv8 through npm failed #293

Closed
carltin0315 opened this issue Jun 15, 2023 · 2 comments
Closed

install msnodesqlv8 through npm failed #293

carltin0315 opened this issue Jun 15, 2023 · 2 comments

Comments

@carltin0315
Copy link

My node version is v18, and I'm running npm i msnodesqlv8.

Here is the error part of the log:

error code 1
242 error path C:\Users\T11242DTD\Documents\GitHub\emsdhome-staff-advanced-search\node_modules\msnodesqlv8
243 error command failed
244 error command C:\Windows\system32\cmd.exe /d /s /c prebuild-install || node-gyp rebuild
245 error prebuild-install warn install self-signed certificate in certificate chain
245 error gyp info it worked if it ends with ok
245 error gyp info using node-gyp@9.3.1
245 error gyp info using node@18.16.0 | win32 | x64
245 error gyp info find Python using Python version 3.11.3 found at "C:\Users\T11242DTD\AppData\Local\Programs\Python\Python311\python.exe"
245 error gyp http GET https://nodejs.org/download/release/v18.16.0/node-v18.16.0-headers.tar.gz
245 error gyp WARN install got an error, rolling back install
245 error gyp ERR! configure error
245 error 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
245 error gyp ERR! stack at ClientRequest. (C:\Users\T11242DTD\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\node_modules\minipass-fetch\lib\index.js:130:14)
245 error gyp ERR! stack at ClientRequest.emit (node:events:513:28)
245 error gyp ERR! stack at TLSSocket.socketErrorListener (node:_http_client:502:9)
245 error gyp ERR! stack at TLSSocket.emit (node:events:513:28)
245 error gyp ERR! stack at emitErrorNT (node:internal/streams/destroy:151:8)
245 error gyp ERR! stack at emitErrorCloseNT (node:internal/streams/destroy:116:3)
245 error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
245 error gyp ERR! System Windows_NT 10.0.19044
245 error gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\T11242DTD\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
245 error gyp ERR! cwd C:\Users\T11242DTD\Documents\GitHub\emsdhome-staff-advanced-search\node_modules\msnodesqlv8
245 error gyp ERR! node -v v18.16.0
245 error gyp ERR! node-gyp -v v9.3.1
245 error gyp ERR! not ok
246 verbose exit 1

I did try to install the previous version like 3.1 & 2.1 but it still give me the same error.
Please help me to solve this.

@sespinoza-dev
Copy link

sespinoza-dev commented Jun 15, 2023

My node version is v18, and I'm running npm i msnodesqlv8.

Here is the error part of the log:

error code 1
242 error path C:\Users\T11242DTD\Documents\GitHub\emsdhome-staff-advanced-search\node_modules\msnodesqlv8
243 error command failed
244 error command C:\Windows\system32\cmd.exe /d /s /c prebuild-install || node-gyp rebuild
245 error prebuild-install warn install self-signed certificate in certificate chain
245 error gyp info it worked if it ends with ok
245 error gyp info using node-gyp@9.3.1
245 error gyp info using node@18.16.0 | win32 | x64
245 error gyp info find Python using Python version 3.11.3 found at "C:\Users\T11242DTD\AppData\Local\Programs\Python\Python311\python.exe"
245 error gyp http GET https://nodejs.org/download/release/v18.16.0/node-v18.16.0-headers.tar.gz
245 error gyp WARN install got an error, rolling back install
245 error gyp ERR! configure error
245 error 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
245 error gyp ERR! stack at ClientRequest. (C:\Users\T11242DTD\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\node_modules\minipass-fetch\lib\index.js:130:14)
245 error gyp ERR! stack at ClientRequest.emit (node:events:513:28)
245 error gyp ERR! stack at TLSSocket.socketErrorListener (node:_http_client:502:9)
245 error gyp ERR! stack at TLSSocket.emit (node:events:513:28)
245 error gyp ERR! stack at emitErrorNT (node:internal/streams/destroy:151:8)
245 error gyp ERR! stack at emitErrorCloseNT (node:internal/streams/destroy:116:3)
245 error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
245 error gyp ERR! System Windows_NT 10.0.19044
245 error gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\T11242DTD\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
245 error gyp ERR! cwd C:\Users\T11242DTD\Documents\GitHub\emsdhome-staff-advanced-search\node_modules\msnodesqlv8
245 error gyp ERR! node -v v18.16.0
245 error gyp ERR! node-gyp -v v9.3.1
245 error gyp ERR! not ok
246 verbose exit 1

I did try to install the previous version like 3.1 & 2.1 but it still give me the same error. Please help me to solve this.

I have the same issue in Mac Ventura 13.4, with npm v9.5.1, Nodejs v18.16.0, also tried with older npm versions.

[EDITED: SOLVED]
What was the issue for me was Netscope Client, I disable it and I was able to install it. So it's most probably a network security issue.

Netscop Client is a security software that is designed to protect the system by monitoring and filtering network traffic. It's possible that Netscop Client was interfering with the network requests made by npm during the installation process, leading to the failure of fetching the necessary files from the npm registry.

@TimelordUK
Copy link
Owner

TimelordUK commented Jun 15, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants