{"id":311,"date":"2023-02-24T22:20:39","date_gmt":"2023-02-24T14:20:39","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=311"},"modified":"2023-04-30T15:05:09","modified_gmt":"2023-04-30T07:05:09","slug":"git-protocol-cannot-connect-to-github-com","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/24\/git-protocol-cannot-connect-to-github-com\/","title":{"rendered":"git\u534f\u8bae unable to connect to github.com"},"content":{"rendered":"<h2>\u9519\u8bef\u4fe1\u606f<\/h2>\n<pre><code class=\"language-bash\">$ bower install jquery\n...\n\nnpm ERR! Error while executing: \nnpm ERR! D:\\Program Files\\git\\cmd\\git.exe ls-remote -h -t\ngit:\/\/github.com\/adobe-webplatform\/eve.git\nnpm ERR! \nnpm ERR! fatal: unable to connect to github.com:\nnpm ERR! github.com[0:13.250.177.223]: errno=No such file or directory\nnpm ERR! \nnpm ERR! \nnpm ERR! exited with error code: 128<\/code><\/pre>\n<p><!-- more --><\/p>\n<pre><code class=\"language-bash\">npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()\nnpm ERR! Error while executing:\nnpm ERR! \/bin\/git ls-remote -h -t git:\/\/github.com\/adobe-webplatform\/eve.git\nnpm ERR! \nnpm ERR! fatal: unable to connect to github.com:\nnpm ERR! github.com[0: 52.74.223.119]: errno=Connection refused\nnpm ERR! \nnpm ERR! \nnpm ERR! exited with error code: 128<\/code><\/pre>\n<h2>\u89e3\u51b3\u65b9\u6cd5<\/h2>\n<p>\u539f\u56e0\uff1a\u9700\u8981\u7528<code>https<\/code>\u624d\u80fd\u8bfb\u5230\u6570\u636e<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n<pre><code>git config --global url.https:\/\/.insteadof=git:\/\/<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u9519\u8bef\u4fe1\u606f $ bower install jquery &#8230; npm ERR! Error while ex [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[99],"class_list":["post-311","post","type-post","status-publish","format-standard","hentry","category-devops-base","tag-git"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=311"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/311\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}