npm在代理后面的私有注册表上发布

时间:2019-08-08 11:44:03

标签: npm proxy registry

我尝试在公司的私有注册表中发布软件包,但是每次,无论路径是好是坏,我都会收到错误消息:

npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! network request to http://privateregistry.com/blabla failed, reason: read ECONNRESET
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

奇怪的是,我从私有注册表中获取软件包没有问题(例如,使用npm install)

我已经测试了.npmrc的许多配置,例如:是否带有http_proxy,https_proxy,代理。但是什么都行不通

是否与用户(由npm adduser设置)无关,出现相同的错误。

0 个答案:

没有答案