npm报错The unauthenticated git protocol on port 9418 is no longer supported

npm报错The unauthenticated git protocol on port 9418 is no longer supported,第1张

目录 一、问题描述二、解决方法


一、问题描述

npm 执行报错 The unauthenticated git protocol on port 9418 is no longer supported :

npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t git://github.com/adobe-webplatform/eve.git
npm ERR!
npm ERR! fatal: remote error:
npm ERR!   The unauthenticated git protocol on port 9418 is no longer supported.
npm ERR! Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
npm ERR!
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-05-10T09_13_57_704Z-debug.log
npm ERR! missing script: build

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-05-10T09_13_58_257Z-debug.log
二、解决方法

使用 https 替换 git :

git config --global url."https://".insteadOf git://

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/947013.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-18
下一篇 2022-05-18

发表评论

登录后才能评论

评论列表(0条)

保存