nodejs / node-gyp

Node.js native addon build tool
MIT License
9.87k stars 1.79k forks source link

Can't get node headers #3066

Open white5354 opened 3 weeks ago

white5354 commented 3 weeks ago

when i run node-gyp configure, appears below

PS F:\projects\theialearn\theia> node-gyp configure

gyp info it worked if it ends with ok
gyp info using node-gyp@10.2.0
gyp info using node@20.8.1 | win32 | x64
gyp info find Python using Python version 3.12.5 found at "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\python.exe"
gyp http GET https://nodejs.org/download/release/v20.8.1/node-v20.8.1-headers.tar.gz

not get headers, what can I do?

Devendra8 commented 2 weeks ago

Facing same issue, did you get any solution?

StefanStojanovic commented 2 weeks ago

Hello, does this happen every time, or just on some occasions? Without any additional information, it seems like a network issue to me.

yzqdev commented 1 week ago

Hello, does this happen every time, or just on some occasions? Without any additional information, it seems like a network issue to me.

Thank you yes, there is a network issue in China.

one solution is to download node-v20.8.1-headers.tar.gz file to our local compute by hand instead of using gyp http getand then move it to the right place, but we don' know where we should put this node-v20.8.1-headers.tar.gz file.

StefanStojanovic commented 1 week ago

one solution is to download node-v20.8.1-headers.tar.gz file to our local compute by hand instead of using gyp http getand then move it to the right place, but we don' know where we should put this node-v20.8.1-headers.tar.gz file.

You can check which options node-gyp exposes. as far as I recall --tarball=PATH_TO_TARBALL should be the option you're looking for, but I haven't used it in a while.