gpt4 book ai didi

node.js - 错误 : failed to fetch from registry: kanso

转载 作者:搜寻专家 更新时间:2023-11-01 00:08:01 25 4
gpt4 key购买 nike

我正在配置 Kleks我想安装 kanso根据 this github article .

我成功安装了 npm 并尝试安装 kanso 后记,这是使用的命令:

stratos@Dev-PC:~$ sudo npm install -g kanso

错误日志:

npm http GET https://registry.npmjs.org/kanso

npm ERR! Error: failed to fetch from registry: kanso
npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR! at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)
npm ERR! at Request.emit (events.js:88:20)
npm ERR! at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at HTTPParser.onIncoming (http.js:1261:11)
npm ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! You may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /home/stratos/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.11.0-26-generic
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "kanso"
npm ERR! cwd /home/stratos
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: kanso
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/stratos/npm-debug.log
npm not ok
stratos@Dev-PC:~$

我的互联网连接工作正常。出现这个问题的原因是什么?

最佳答案

这是因为我使用的ubuntu版本,是ubuntu 12.04的老版本。我在 ubuntu 更高版本中运行了相同的代码,它运行成功。由于我使用的是 npm,所以我别无选择,只能升级 ubuntu 版本。希望npm将在未来的版本中解决这个向后的能力问题。

关于node.js - 错误 : failed to fetch from registry: kanso,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26136411/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com