npm Archives - TEKSpace Blog https://blog.tekspace.io/tag/npm/ Tech tutorials for Linux, Kubernetes, PowerShell, and Azure Wed, 16 Aug 2023 22:01:47 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 https://blog.tekspace.io/wp-content/uploads/2023/09/cropped-Tekspace-logo-icon-32x32.png npm Archives - TEKSpace Blog https://blog.tekspace.io/tag/npm/ 32 32 Setting up npm behind corporate proxy https://blog.tekspace.io/setting-up-npm-behind-corporate-proxy/ https://blog.tekspace.io/setting-up-npm-behind-corporate-proxy/#respond Mon, 12 Mar 2018 14:59:30 +0000 https://blog.tekspace.io/index.php/2018/03/12/setting-up-npm-behind-corporate-proxy/ When setting up npm in your corporate environment that is behind proxy. Most likely you receive an error like below when installing packages. npm ERR! request to https://registry.npmjs.org/typescript failed, reason: write EPROTO 101057795:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c:827: To resolve this issue, we need to execute below commands. Set HTTP proxy Set HTTPS proxy Change registry to http

The post Setting up npm behind corporate proxy appeared first on TEKSpace Blog.

]]>
When setting up npm in your corporate environment that is behind proxy. Most likely you receive an error like below when installing packages.

npm ERR! request to https://registry.npmjs.org/typescript failed, reason: write EPROTO 101057795:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c:827:

To resolve this issue, we need to execute below commands.

Set HTTP proxy

npm config set http-proxy http://proxy.example.net:80

Set HTTPS proxy

npm config set https-proxy http://proxy.example.net:80

Change registry to http

npm config set registry http://registry.npmjs.org/

Clean NPM cache

npm cache clean --force

The post Setting up npm behind corporate proxy appeared first on TEKSpace Blog.

]]>
https://blog.tekspace.io/setting-up-npm-behind-corporate-proxy/feed/ 0