-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
gyp errors on npm install #2972
Comments
It seems to be happening on other npm installs now
|
Just tried with v16.20.2 and works without problems in the previous errors but still brakes on local-npm install. |
same error... node v18.17 |
10.4.0 |
ok that could be a temp fix but i would prefer to use the latest npm if possible |
This comment was marked as resolved.
This comment was marked as resolved.
That link provides a pointer to all the other issues in this repo about the same problem. |
@cclauss so does this confirms that the node tls rejection flag is the cause of the problem? |
Facing same issues |
BeforeI met the same error. What should I do ? Update - My solutions
|
Are you all trying to install |
@cclauss I tried to install |
https://stackoverflow.com/a/62096421/15046796 this worked for me on macOS. |
this stackoverflow post seems unrelated to the issue, care to explain? |
I am using Mac m1 chip laptop. I've recently updated to latest homebrew version. When I try to install node modules, there were these node gyp errors. So using the stackoverflow post above I was able to downgrade the homebrew version and the node modules were now installed successfully. So the solution that i posted above is for specifically Mac machines. |
Ah, thank you for the clarification. With added context your comment can help out Mac users. |
Somewhere in the middle of logs I saw this:
This answer solved the issue for me: brew install python-setuptools Explanation from the source:
|
@jeniasaigak The full error log will clarify that you have an out-of-date version of Please read the installation section of node-gyp's https://github.com/nodejs/node-gyp?tab=readme-ov-file#installation says Important Python >= v3.12 requires |
Simply do Then re-run |
I tried all the solutions in the comments, but none of them worked. |
What solved it for me was downgrading to node version v16.20.2, use python version 3.9.0 and also use node-gyp@10.0.0 And I had to ran the following commands:
Edit:
After downgrading and running the commands I upgraded node and python again and everything was working fine. It just needed the downgrade for the initial installation of node_modules it seemed. |
Downgrading to an unsupported version of Node.is NOT recommended. |
I opened a pr npm/make-fetch-happen#316 so make-fetch-happen respect NODE_TLS_REJECT_UNAUTHORIZED. |
I found that the problem is caused by minipass-fetch dependency, which they are also facing the same problem. |
Hello,
I am currently getting an error in most of my installed node versions that goes from 14.16.0 up to 18 and latest 20.
I already tried most of the suggested fixs by the community that pass through the sass reinstallation and others.
I have reinstalled the node-gyp@latest globally but didnt solved the problem.
npm install local-npm gyp errors
Hope to get some assitance or be pointed into possible solutions.
Thanks in advance.
The text was updated successfully, but these errors were encountered: