纱线安装:列出...失败 /退出代码的参考文献:128

发布于 2025-02-10 01:01:55 字数 1833 浏览 1 评论 0原文

因此,我将较旧的git仓库克隆到我的新设备上,然后在“ root Directory”项目中进行“纱线安装”。它给了我这个输出(我使用纱线V2 CLI / BERRY):

(节点:52346)UnhandledPromiseReptiondwarning:错误: mux-demux@git://github.com/raynos/mux-demux.git#error-messages: 列出git的参考://github.com/raynos/mux-demux.git失败 childprocess.u.on (/users/linus/.nvm/versions/node/v10.24.1/lib/node_modules/yarn/bin/yarn.js:2:412797) 在Maybeclose上拨打ChildProcess.emit(Events.JS:198:13) (内部/child_process.js:982:16)在socket.stream.socket.on上 (内部/child_process.js:389:11)在socket.emit(event.js:198:13) 在pipe._handle.close(net.js:607:12)(节点:52346) 未经手的反射战士:未经手的承诺拒绝。这 错误源于将异步功能扔进 没有捕获障碍,或拒绝未解决的诺言 使用.catch()。 (拒绝ID:1)(节点:52346)[DEP0018] 弃用:未经手的承诺拒绝被贬低。在 未来,未处理的承诺拒绝将终止 Node.js处理具有非零退出代码。

(节点:52346) 未经手的征服值:错误: sockjs-client@git://github.com/substack/sockjs-client.git#browserify-npm: 列出git的参考://github.com/substack/sockjs-client.git 在ChildProcess.u.on上失败 (/users/linus/.nvm/versions/node/v10.24.1/lib/node_modules/yarn/bin/yarn.js:2:412797) 在Maybeclose上拨打ChildProcess.emit(Events.JS:198:13) (内部/child_process.js:982:16)at process.ChildProcess._handle.Onexit(内部/child_process.js:259:5) (节点:52346)未经手的反应辩护:未经手的承诺 拒绝。此错误是通过扔在异步内部的 没有捕获障碍的功能,或者拒绝诺言 未使用.catch()处理。 (拒绝ID:2)

yarnpkg(v1)给了我:

error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads git://github.com/substack/sockjs-client.git
Directory: /Users/linuxgrolmes/PhpStormProjects/ifs-user-online-list-vue2
Output:
fatal: unable to connect to github.com:
github.com[0: 140.82.121.4]: errno=Operation timed out
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

顺便说一句,库“ mux-demux”和“ sockjs-client”是唯一用“ git://”链接的库,而不是“ https:https:https:https: //“在“ package-lock.json”开头。

难道这是造成问题的原因吗?到目前为止,我尝试了很多事情,但我不确定现在如何继续。

So i cloned an older git repo to my new device and simply ran "yarn install" in the projects root directory. It gave me this output (i use yarn v2 cli / berry):

(node:52346) UnhandledPromiseRejectionWarning: Error:
mux-demux@git://github.com/Raynos/mux-demux.git#error-messages:
Listing the refs for git://github.com/Raynos/mux-demux.git failed at
ChildProcess.u.on
(/Users/linus/.nvm/versions/node/v10.24.1/lib/node_modules/yarn/bin/yarn.js:2:412797)
at ChildProcess.emit (events.js:198:13) at maybeClose
(internal/child_process.js:982:16) at Socket.stream.socket.on
(internal/child_process.js:389:11) at Socket.emit (events.js:198:13)
at Pipe._handle.close (net.js:607:12) (node:52346)
UnhandledPromiseRejectionWarning: Unhandled promise rejection. This
error originated either by throwing inside of an async function
without a catch block, or by rejecting a promise which was not handled
with .catch(). (rejection id: 1) (node:52346) [DEP0018]
DeprecationWarning: Unhandled promise rejections are deprecated. In
the future, promise rejections that are not handled will terminate the
Node.js process with a non-zero exit code.

(node:52346)
UnhandledPromiseRejectionWarning: Error:
sockjs-client@git://github.com/substack/sockjs-client.git#browserify-npm:
Listing the refs for git://github.com/substack/sockjs-client.git
failed at ChildProcess.u.on
(/Users/linus/.nvm/versions/node/v10.24.1/lib/node_modules/yarn/bin/yarn.js:2:412797)
at ChildProcess.emit (events.js:198:13) at maybeClose
(internal/child_process.js:982:16) at
Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
(node:52346) UnhandledPromiseRejectionWarning: Unhandled promise
rejection. This error originated either by throwing inside of an async
function without a catch block, or by rejecting a promise which was
not handled with .catch(). (rejection id: 2)

yarnpkg (v1) gives me:

error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads git://github.com/substack/sockjs-client.git
Directory: /Users/linuxgrolmes/PhpStormProjects/ifs-user-online-list-vue2
Output:
fatal: unable to connect to github.com:
github.com[0: 140.82.121.4]: errno=Operation timed out
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

By the way, the librarys "mux-demux" and "sockjs-client" are the only ones which links are referenced with "git://" instead of "https://" at the beginning in "package-lock.json".

Could it be this is a cause of the problem? I tried a lot up to this point and I'm not really sure on how to continue now..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文