잘못된 처리 방법

2047 단어 GitGitHubtech

현상.


■ node.js 프로젝트에서 npm install에서 다음 오류가 발생했습니다. npm install에 실패했습니다.
3
Error while executing:
npm ERR! /usr/local/bin/git ls-remote -h -t git://github.com/{hogehoge}.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
.
.
.
ERR! The unauthenticated git protocol on port 9418 is no longer supported.
ERR! /usr/local/bin/git ls-remote -h -t git://github.com/{hogehoge}.git
위 오류 문장을 출력하는데 npm install이 실패했습니다.

까닭


https://github.blog/2021-09-01-improving-git-protocol-security-github/
GitHub의 추천 프로토콜은https로 변경되었고git가 시작한 URL은 추천하지 않습니다.
On the Git protocol side, unencrypted git://offers no integrity or authentication, making it subject to tampering. We expect very few people are still using this protocol, especially given that you can’t push (it’s read-only on GitHub). We’ll be disabling support for this protocol.
We’ll permanently stop accepting DSA keys. RSA keys uploaded after the cut-off point above will work only with SHA-2 signatures (but again, RSA keys uploaded before this date will continue to work with SHA-1). The deprecated MACs, ciphers, and unencrypted Git protocol will be permanently disabled.
2022년 3월 15일에 폐지한다.
폐기된git 프로토콜로github에 연결하려고 시도했기 때문에 오류가 발생했습니다.

해결책


git://github.com/{hogehoge}.git부분https화
- git://github.com/{hogehoge}.git
+ https://github.com/{hogehoge}.git

좋은 웹페이지 즐겨찾기