{"id":2979,"date":"2018-07-14T06:33:33","date_gmt":"2018-07-14T06:33:33","guid":{"rendered":"http:\/\/myprojects.advchaweb.com\/?p=2979"},"modified":"2018-07-14T06:33:33","modified_gmt":"2018-07-14T06:33:33","slug":"composer","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2018\/07\/14\/composer\/","title":{"rendered":"Composer"},"content":{"rendered":"<p>I got a fews problem when I tried to check the composer version. A few warnings:<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~\/Documents\/works\/magento222$ composer -V\r\nCannot create cache directory \/home\/teddy\/.composer\/cache\/repo\/https---repo.magento.com\/, or directory is not writable. Proceeding without cache\r\nCannot create cache directory \/home\/teddy\/.composer\/cache\/repo\/https---packagist.org\/, or directory is not writable. Proceeding without cache\r\nCannot create cache directory \/home\/teddy\/.composer\/cache\/files\/, or directory is not writable. Proceeding without cache\r\nCannot create cache directory \/home\/teddy\/.composer\/cache\/repo\/https---packagist.org\/, or directory is not writable. Proceeding without cache\r\nComposer version 1.6.2 2018-01-05 15:28:41<\/pre>\n<p>Solution:<br \/>\nref: https:\/\/stackoverflow.com\/questions\/35874482\/cannot-create-cache-directory-or-directory-is-not-writable-proceeding-withou<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~\/Documents\/works\/magento222$ sudo chown -R teddy \/home\/teddy\/.composer\/cache\/repo\/https---repo.magento.com\/\r\nteddy@teddy:~\/Documents\/works\/magento222$ sudo chown -R teddy \/home\/teddy\/.composer\/cache\/repo\/https---packagist.org\/\r\nteddy@teddy:~\/Documents\/works\/magento222$ sudo chown -R teddy \/home\/teddy\/.composer\/cache\/files\/\r\nteddy@teddy:~\/Documents\/works\/magento222$ composer -V\r\nComposer version 1.6.2 2018-01-05 15:28:41<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got a fews problem when I tried to check the composer version. A few warnings: teddy@teddy:~\/Documents\/works\/magento222$ composer -V Cannot create cache directory \/home\/teddy\/.composer\/cache\/repo\/https&#8212;repo.magento.com\/, or directory is not writable. Proceeding without cache Cannot create cache directory \/home\/teddy\/.composer\/cache\/repo\/https&#8212;packagist.org\/, or directory is not writable. Proceeding without cache Cannot create cache directory \/home\/teddy\/.composer\/cache\/files\/, or directory is not writable. &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2018\/07\/14\/composer\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Composer&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48],"tags":[],"class_list":["post-2979","post","type-post","status-publish","format-standard","hentry","category-php-2"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/2979","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=2979"}],"version-history":[{"count":1,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/2979\/revisions"}],"predecessor-version":[{"id":2980,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/2979\/revisions\/2980"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=2979"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=2979"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=2979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}