alexanderGugel / alexanderGugel/ied
getaddrinfo ENOTFOUND vs https registry
- 主要語言
- 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 還沒有評估資料。