- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我在 Windows (Ubuntu 18) 上运行 bash,最近切换到 Yarn,但我需要再次使用 npm 来安装 truffle,然后发现我的 npm 已经死了。我尝试重新安装 node/npm,甚至重新安装 Ubuntu 本身,但仍然遇到同样的错误。
下面是错误日志。我现在完全迷失了......
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install' ]
2 info using npm@5.6.0
3 info using node@v8.11.4
4 verbose npm-session 6f42a40556042ae5
5 silly install runPreinstallTopLevelLifecycles
6 silly preinstall inbox@1.0.0
7 info lifecycle inbox@1.0.0~preinstall: inbox@1.0.0
8 silly install loadCurrentTree
9 silly install readLocalPackageData
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 silly install loadShrinkwrap
13 silly install loadAllDepsIntoIdealTree
14 silly fetchPackageMetaData error for truffle@^4.1.14 request to https://registry.npmjs.org/truffle failed, reason: Hostname/IP$15 silly fetchPackageMetaData error for truffle@^4.1.14 request to https://registry.npmjs.org/truffle failed, reason: Hostname/IP$16 silly saveTree inbox@1.0.0
17 verbose type system
18 verbose stack FetchError: request to https://registry.npmjs.org/truffle failed, reason: Hostname/IP doesn't match certificate'$18 verbose stack at ClientRequest.req.on.err (/usr/lib/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/no$18 verbose stack at emitOne (events.js:116:13)
18 verbose stack at ClientRequest.emit (events.js:211:7)
18 verbose stack at TLSSocket.socketErrorListener (_http_client.js:387:9)
18 verbose stack at emitOne (events.js:116:13)
18 verbose stack at TLSSocket.emit (events.js:211:7)
18 verbose stack at emitErrorNT (internal/streams/destroy.js:64:8)
18 verbose stack at _combinedTickCallback (internal/process/next_tick.js:138:11)
18 verbose stack at process._tickCallback (internal/process/next_tick.js:180:9)
19 verbose cwd /mnt/c/Users/user06/Documents/bootcamp/capstone/truffle_test
20 verbose Linux 4.4.0-17134-Microsoft
21 verbose argv "/usr/bin/node" "/usr/bin/npm" "install"
22 verbose node v8.11.4
23 verbose npm v5.6.0
24 error request to https://registry.npmjs.org/truffle failed, reason: Hostname/IP doesn't match certificate's altnames: "Host: r$25 verbose exit [ 1, true ]
最佳答案
An earlier outage involving a DNS misconfiguration has lead to some ISPs caching npmjs.com as missing, a workaround for this is to use a third party DNS provider such as Cloudflare or Google, the affected caches should clear within the next 24 hours.
关于node.js - npm 完全死亡,ERR_TLS_CERT_ALTNAME_INVALID,主机名/IP 与证书的替代名称不匹配 : Host: registry. npmjs.org,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52128026/
我将 nodemailer 配置为发送到 hostgator(因为我在这里学到了如何:https://stackoverflow.com/a/56291143/954986): const trans
我尝试将webpack-dev-server用作对远程测试服务器的API请求的代理(以免在本地计算机上引发繁重的Java服务器)。问题是远程服务器仅使用HTTPS。由于某种原因,尽管它可以从浏览器中正
我已经有一段时间没有尝试设置一个新的 Angular 应用程序了——因为我已经在一个现有的应用程序上工作了几个月。 今天,在我的 Mac 中尝试通过终端安装一个新的 Angular 应用程序时,它运行
尝试使用 HTTPS 向网站发送请求时,我收到以下错误:ERR_TLS_CERT_ALTNAME_INVALID 我尝试将 insecure: true 添加到我的请求负载中,但这没有任何作用,我也尝
我在 Windows (Ubuntu 18) 上运行 bash,最近切换到 Yarn,但我需要再次使用 npm 来安装 truffle,然后发现我的 npm 已经死了。我尝试重新安装 node/npm
我是一名优秀的程序员,十分优秀!