一、问题描述
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://
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)