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

Why is this thing broken so often when I install? #2818

Closed
alper opened this issue Mar 17, 2023 · 5 comments
Closed

Why is this thing broken so often when I install? #2818

alper opened this issue Mar 17, 2023 · 5 comments

Comments

@alper
Copy link

alper commented Mar 17, 2023

I have no idea what this thing does, I just know that once every so often when I do yarn install, I get an error message pertaining to node-gyp.

What's going on here? Can this be fixed or deprecated in some way?

@robrecord
Copy link

I feel the same way. I've grown to have very negative feelings about this package. Sorry devs.

@robrecord
Copy link

robrecord commented May 1, 2023

On a (hopefully) more positive note, the version of node-gyp you install must be compatible with the version of node you're running, and your operating system. I don't know how to work that out other than experiment. Either downgrade your node, or upgrade your node-gyp.

@cclauss
Copy link
Contributor

cclauss commented May 1, 2023

If you are unwilling to put the full error log into the issue as requested in the new issue template then no one can help.

@rvagg
Copy link
Member

rvagg commented May 2, 2023

yeah, ok, so node-gyp shows up in your logs so it's the obvious thing to blame, just know that the vast majority of problems are from a package you're trying to install, node-gyp is just attempting to run the compile toolchain to turn the code into a binary and there's a lot of stuff that can go wrong.

the version of node-gyp you install must be compatible with the version of node you're running

not really - the version of the package you're installing must be compatible with the version of Node you're using. Check your dependencies, see what's being installed and failing, go chase that up, moaning here is either going to get ignored or elicit a response like @cclauss' or the one I'm writing now.

@rvagg rvagg closed this as completed May 2, 2023
@robrecord
Copy link

robrecord commented May 2, 2023

Thank you @rvagg

This has been helpful.

In my case I downgraded node to the lowest I could, saw my install logs were mentioning node-sass/gulp-sass and replaced them with dart sass. Got it working. Just in case that helps anyone.

Appreciate all that you guys do. Just wish the log output had more helpful messages.

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

4 participants