node-gyp icon indicating copy to clipboard operation
node-gyp copied to clipboard

Can't get node headers

Open white5354 opened this issue 1 year ago • 4 comments

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 [email protected]
gyp info using [email protected] | 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?

white5354 avatar Aug 29 '24 06:08 white5354

Facing same issue, did you get any solution?

Devendra8 avatar Sep 06 '24 09:09 Devendra8

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

StefanStojanovic avatar Sep 10 '24 09:09 StefanStojanovic

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 get and then move it to the right place, but we don' know where we should put this node-v20.8.1-headers.tar.gz file.

yzqdev avatar Sep 14 '24 10:09 yzqdev

one solution is to download node-v20.8.1-headers.tar.gz file to our local compute by hand instead of using gyp http get and 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.

StefanStojanovic avatar Sep 16 '24 14:09 StefanStojanovic

I'm closing this issue since it has been stale for some time after I suggested the workaround. If needed, please reopen it, or open a new issue.

StefanStojanovic avatar Dec 02 '24 14:12 StefanStojanovic