node icon indicating copy to clipboard operation
node copied to clipboard

Getting the error "Assertion failed (wrap->ssl_) != (nullptr), file src\tls_wrap.cc, line 320" while module installation by npm

Open SergeKornilov opened this issue 11 years ago • 47 comments

I get the error "Assertion failed (wrap->ssl_) != (nullptr), file src\tls_wrap.cc, line 320" trying to install any module by npm via proxy, for example, request or cheerio:

npm config set proxy http://username:[email protected]:8080 npm config set https-proxy https://username:[email protected]:8080

npm install cheerio

//

Thus, request module is not installed at all, and cheerio module is installed without dependencies.

//

npm --version 2.14.3

node --version v4.1.0

OS: windows xp sp3

SergeKornilov avatar Sep 21 '15 10:09 SergeKornilov

I get the same error on win xp, when I've run npm install

npm --proxy http://191.168.1.1:3128 --without-ssl --insecure install string. I think it because I using proxy in my local arean network.

node --version v4.1.2

wwwork avatar Oct 12 '15 13:10 wwwork

Please give it a try to node.js 4.2.0 . The problem should be fixed there.

indutny avatar Oct 12 '15 19:10 indutny

Thank you very much! 4.2.0 really works great!

SergeKornilov avatar Oct 13 '15 05:10 SergeKornilov

Thank you, this version 4.2.0 works fine.

veneMarcos avatar Oct 13 '15 13:10 veneMarcos

Whoa, looks like it was a good call to include that fix into release. Thank you!

indutny avatar Oct 13 '15 14:10 indutny

I'm seeing this issue in node 4.4 running on win 7 and ubuntu 14.04.4 LTS. The error is printed when an ssl socket is closed. I'm only using the built in modules http, https, crypto. My code runs fine without the https module. Sorry if I've posted in the wrong place but this is the only reference I can find to this error. The error message is "Assertion failed: (wrap->ssl_) != (nullptr), file src\tls_wrap.cc, line 319".

mypuem avatar Apr 11 '16 09:04 mypuem

@mypuem If you still get that with the latest v4.x release (v4.4.2 at the time of writing), can you file a new issue and include steps to reproduce? The test case should preferably not depend on any third-party modules.

bnoordhuis avatar Apr 11 '16 19:04 bnoordhuis