alexanderGugel / alexanderGugel/ied

getaddrinfo ENOTFOUND vs https registry

未關閉
#43 20 則留言 0 個 reaction 已指派 1 人 已被 @alexanderGugel 認領 在 GitHub 檢視
主要語言
JavaScript
星號
2k
分支
51
PR 合併指標
30 天內沒有已合併 PR

描述

When trying to install this particular package `ied` does a bit of work, then fails with a weird `getaddrinfo ENOTFOUND` error:

```
> ied install css-loader
[==============================] 100.00%/usr/local/lib/node_modules/ied/lib/install_cmd.js:65
if (err) throw err
^

Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:80
at errnoException (dns.js:26:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:77:26)
>
```

Switching to the https registry does work though:

```
> ied install --registry=https://registry.npmjs.org/ css-loader
>
```

**edit:** not sure switching the `--registry` actually fixed anything, seems intermittent.

Regardless of this bug, perhaps should default to the https endpoint.

```
> ied --version
ied version 0.3.4
> node --version
v4.2.2
```

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。