X
X
XONI2018-09-18 09:41:12
Node.js
XONI, 2018-09-18 09:41:12

How to fix proxy error?

I want to install nodemon. But when I try to install, I get this error:
sudo npm install -g nodemon

npm ERR! code EPROTO
npm ERR! errno EPROTO
npm ERR! request to registry.npmjs.org/nodemon failed, reason: write EPROTO140097810798400:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:827:
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-09-18T06_36_29_786Z-debug.log

Setting the proxy this way doesn't help.
$ npm config set proxy http://:@:
$ npm config set https-proxy http://:@:

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RidgeA, 2018-09-18
@RidgeA

most likely the problem is that the proxy does not support the version of ssl that the node requires
, in theory this error can occur in two cases
1. https://github.com/nodejs/node/blob/97c1fa3d3b98bf...
2. https:/ /github.com/nodejs/node/blob/97c1fa3d3b98bf...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question