Ejemplo 1: instalación de npm detrás del proxy
npm config set strict-ssl false
npm config set registry "http://registry.npmjs.org/"
npm config set proxy http://<username><password>@proxy-server-url>:<port>
npm config set https-proxy http://<username><password>@proxy-server-url>:<port>
npm install
Ejemplo 2: npm install no funciona detrás del proxy
npm config set strict-ssl false
# Set npm to use http instead of https
npm config set registry "http://registry.npmjs.org/"
# install your package with below syntax, can leave out the
# username:password section if your proxy does not require
# you to authenticate. The "http://" part is very important
npm --proxy http://username:[email protected]:80 install packagename
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)