I have installed Magento 2.0 rc in AWS and tried to update my composer.json to update it to Magento 2.0.

Ran the command sudo composer config composer.json but received an red box with the error

[RuntimeException] composer.json is not defined.

I've also tried to run the following command with no response from bash. composer config repositories.magento composer http://repo.magento.com

Your help is much appreciated. George Ng

1 Answer 1


composer config is used to manage composer settings. There is also usually no need to run it with sudo. To update project, run cd <magento_root_dir> && composer update.

Note, that Magento 2.0 has backward incompatible changes and it may be better to install it from scratch.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.