I got a fews problem when I tried to check the composer version. A few warnings:
|
1 2 3 4 5 6 |
teddy@teddy:~/Documents/works/magento222$ composer -V Cannot create cache directory /home/teddy/.composer/cache/repo/https---repo.magento.com/, or directory is not writable. Proceeding without cache Cannot create cache directory /home/teddy/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache Cannot create cache directory /home/teddy/.composer/cache/files/, or directory is not writable. Proceeding without cache Cannot create cache directory /home/teddy/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache Composer version 1.6.2 2018-01-05 15:28:41 |
Solution:
ref: https://stackoverflow.com/questions/35874482/cannot-create-cache-directory-or-directory-is-not-writable-proceeding-withou
|
1 2 3 4 5 |
teddy@teddy:~/Documents/works/magento222$ sudo chown -R teddy /home/teddy/.composer/cache/repo/https---repo.magento.com/ teddy@teddy:~/Documents/works/magento222$ sudo chown -R teddy /home/teddy/.composer/cache/repo/https---packagist.org/ teddy@teddy:~/Documents/works/magento222$ sudo chown -R teddy /home/teddy/.composer/cache/files/ teddy@teddy:~/Documents/works/magento222$ composer -V Composer version 1.6.2 2018-01-05 15:28:41 |