{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/4222","labels_url":"https://api.github.com/repos/composer/composer/issues/4222/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/4222/comments","events_url":"https://api.github.com/repos/composer/composer/issues/4222/events","html_url":"https://github.com/composer/composer/issues/4222","id":93554174,"number":4222,"title":"Checking composer.json: FAIL - Why?","user":{"login":"kotoponus","id":1201728,"avatar_url":"https://avatars.githubusercontent.com/u/1201728?v=3","gravatar_id":"","url":"https://api.github.com/users/kotoponus","html_url":"https://github.com/kotoponus","followers_url":"https://api.github.com/users/kotoponus/followers","following_url":"https://api.github.com/users/kotoponus/following{/other_user}","gists_url":"https://api.github.com/users/kotoponus/gists{/gist_id}","starred_url":"https://api.github.com/users/kotoponus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kotoponus/subscriptions","organizations_url":"https://api.github.com/users/kotoponus/orgs","repos_url":"https://api.github.com/users/kotoponus/repos","events_url":"https://api.github.com/users/kotoponus/events{/privacy}","received_events_url":"https://api.github.com/users/kotoponus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-07T15:11:28Z","updated_at":"2015-07-08T14:34:38Z","closed_at":null,"body":"Why do I get this error message?  I can see it clearly read into the composer.json as it does not give me the license warning anymore by having one.  This may seems basic, and I guess it must be (sorry), but I can't see for the life of me what can cause it.  I would be grateful if you can please give me a pointer.\r\n\r\n>ubuntu$ composer diag\r\n>**Checking composer.json: FAIL**\r\n>the property name is required\r\n>the property description is required\r\n>Checking platform settings: OK\r\n>Checking git settings: OK\r\n>Checking http connectivity to packagist: OK\r\n>Checking https connectivity to packagist: OK\r\n>Checking HTTP proxy: OK\r\n>Checking HTTP proxy support for request_fulluri: OK\r\n>Checking HTTPS proxy support for request_fulluri: OK\r\n>Checking github.com rate limit: OK\r\n>Checking disk free space: OK\r\n>Checking composer version: FAIL\r\n>You are not running the latest version\r\n\r\n>ubuntu$ ls -la\r\n>total x\r\n>drwxr-xr-x 11 6226 6226  4096 Jul  7 14:57 .\r\n>drwxr-xr-x 16 root root  4096 Jul  6 16:50 ..\r\n>...\r\n>-rw-rw-rw-  1 root root    84 Jul  7 14:57 composer.json\r\n>...\r\n\r\n>ubuntu$ vim composer.json\r\n>{\r\n>    \"license\": \"MIT\",\r\n>    \"require\": {\r\n>        \"monolog/monolog\": \"1.0.*\"\r\n>   }\r\n>}\r\n\r\nBTW it is a global install of Composer and the composer.json sits at /var/www/folder/.\r\n"},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/119601637","html_url":"https://github.com/composer/composer/issues/4222#issuecomment-119601637","issue_url":"https://api.github.com/repos/composer/composer/issues/4222","id":119601637,"user":{"login":"kotoponus","id":1201728,"avatar_url":"https://avatars.githubusercontent.com/u/1201728?v=3","gravatar_id":"","url":"https://api.github.com/users/kotoponus","html_url":"https://github.com/kotoponus","followers_url":"https://api.github.com/users/kotoponus/followers","following_url":"https://api.github.com/users/kotoponus/following{/other_user}","gists_url":"https://api.github.com/users/kotoponus/gists{/gist_id}","starred_url":"https://api.github.com/users/kotoponus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kotoponus/subscriptions","organizations_url":"https://api.github.com/users/kotoponus/orgs","repos_url":"https://api.github.com/users/kotoponus/repos","events_url":"https://api.github.com/users/kotoponus/events{/privacy}","received_events_url":"https://api.github.com/users/kotoponus/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T14:34:38Z","updated_at":"2015-07-08T14:34:38Z","body":"Am I right to say the following command updates the composer version?\r\n\r\n>ubuntu$ composer self-update\r\n\r\nIn return I get:\r\n\r\n>ubuntu$ composer self-update\r\n>Updating to version dbdd4978a7dd4cd29d0d7dfc912aab404245b736.\r\n>    Downloading: 100%         \r\n>                                                                              \r\n>  [ErrorException]                                                             \r\n>  rename(/home/kotoko/.composer/cache/composer-temp.phar,/usr/local/bin/composer): Permission denied                                                      \r\n> self-update [-r|--rollback] [--clean-backups] [--no-progress] [version]\r\n\r\nMy installation is global, so I take running without sudo would do it?  "}}