{"id":130,"date":"2020-12-25T15:27:14","date_gmt":"2020-12-25T07:27:14","guid":{"rendered":"http:\/\/blog.gamekingtao.top\/?p=130"},"modified":"2020-12-25T15:27:14","modified_gmt":"2020-12-25T07:27:14","slug":"composer-%e6%8a%a5%e9%94%99%e8%a7%a3%e5%86%b3%ef%bc%9ainvalidargumentexception-could-not-find-package","status":"publish","type":"post","link":"https:\/\/blog.gamekingtao.top\/index.php\/2020\/12\/25\/composer-%e6%8a%a5%e9%94%99%e8%a7%a3%e5%86%b3%ef%bc%9ainvalidargumentexception-could-not-find-package\/","title":{"rendered":"composer \u62a5\u9519\u89e3\u51b3\uff1a[InvalidArgumentException] Could not find package"},"content":{"rendered":"<p><img loading=\"lazy\" src=\"https:\/\/img-blog.csdnimg.cn\/20201222164630775.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MTE1Mjc0Mw==,size_16,color_FFFFFF,t_70\" alt=\"\" width=\"841\" height=\"205\" \/><\/p>\n<p>\u9020\u6210\u539f\u56e0:<\/p>\n<p>\u56e0\u4e3a\u4e4b\u524d\u4f7f\u7528\u955c\u50cf\u7684\u95ee\u9898\u9020\u6210\u7684<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a\u89e3\u9664\u955c\u50cf\u5373\u53ef<\/p>\n<pre><code class=\"hljs lua\">composer <span class=\"hljs-built_in\">config<\/span> -g <span class=\"hljs-comment\">--unset repos.packagist<\/span><\/code><\/pre>\n<p><img loading=\"lazy\" src=\"https:\/\/img-blog.csdnimg.cn\/20201222164645565.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MTE1Mjc0Mw==,size_16,color_FFFFFF,t_70\" alt=\"\" width=\"694\" height=\"351\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9020\u6210\u539f\u56e0: \u56e0\u4e3a\u4e4b\u524d\u4f7f\u7528\u955c\u50cf\u7684\u95ee\u9898\u9020\u6210\u7684 \u89e3\u51b3\u65b9\u6cd5\uff1a\u89e3\u9664\u955c\u50cf\u5373\u53ef composer config -g &#8211;u &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.gamekingtao.top\/index.php\/2020\/12\/25\/composer-%e6%8a%a5%e9%94%99%e8%a7%a3%e5%86%b3%ef%bc%9ainvalidargumentexception-could-not-find-package\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201ccomposer \u62a5\u9519\u89e3\u51b3\uff1a[InvalidArgumentException] Could not find package\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts\/130"}],"collection":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/comments?post=130"}],"version-history":[{"count":1,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts\/130\/revisions"}],"predecessor-version":[{"id":131,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts\/130\/revisions\/131"}],"wp:attachment":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/media?parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/categories?post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/tags?post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}