-
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
"node-gyp configure" fails with ECONNRESET error. #1084
Comments
+1 Same issue here on Ubuntu 14.04 gyp info it worked if it ends with ok |
@YaminiManthena1 @spectravp are you seeing those under VirtualBox? |
Same. My error is coming from a docker container on Cloud Foundry.
|
@bzoz You had an idea? @justinmoninger it seems like either Docker or "Cloud Foundry" is breaking your TLS connection, that might happen if they have a filter that stops the TLS handshake. Or those systems have an old CA. You can work around this by downloading the node source tarball from https://nodejs.org/download/release/v6.9.5/ and directing node-gyp to use it instead of trying to download it, by setting |
I assume @bzoz suspected the bug he mentioned here nodejs/node#10286 (comment) |
Exactly |
FYI the tarball option won't work for Windows users, as If you've installed node and npm you already have Assuming you're using node v6.10.1: Headers are stored in curl -O https://nodejs.org/dist/v6.10.1/node-v6.10.1-headers.tar.gz # on a computer with internet
curl -O https://nodejs.org/dist/v6.10.1/win-x64/node.lib # Windows 64-bit only
curl -O https://nodejs.org/dist/v6.10.1/win-x86/node.lib # Windows 32-bit only
# Copy header tarball to offline machine
mkdir -p ~/.node-gyp/6.10.1
tar -xf node-v6.10.1-headers.tar.gz --directory ~/.node-gyp/6.10.1/ --strip-components 1
echo 9 >~/.node-gyp/6.10.1/installVersion Basically the contents of 6.10.1
├── include # Contains downloaded headers
└── installVersion # File, content is the number 9
└── x64 # Contains 64-bit node.lib (windows only)
└── ia32 # Contains 32-bit node.lib (windows only)
└── Release # Contains 64-bit node.lib (windows only)
|
Answered, closing. |
gyp ERR! install error |
gyp ERR! install error similar error with browser plus |
npm install -g node-gyp was successful but node-gyp configure throws the error below. Trying to upgrade node version in our application.
Mine is a Windows 7 64 bit machine.
D:\App>node-gyp configure
gyp info it worked if it ends with ok
gyp info using node-gyp@3.4.0
gyp info using node@6.9.2 | win32 | x64
gyp http GET https://nodejs.org/download/release/v6.9.2/node-v6.9.2-headers.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: read ECONNRESET
gyp ERR! stack at exports._errnoException (util.js:1022:11)
gyp ERR! stack at TLSWrap.onread (net.js:569:26)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\XXXX\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.j
s" "configure"
gyp ERR! cwd D:\IMVNode new version\IMV
gyp ERR! node -v v6.9.2
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
The text was updated successfully, but these errors were encountered: