I am trying to install an extension with the help of composer for magento 2. This is my composer.json file
{
"name": "ankur/module-quickorder",
"description": "N/A",
"require": {
"php": "~5.6.5|7.0.2|7.0.4|~7.0.6",
"magento/module-store": "100.0.0",
"magento/module-backend": "100.0.0",
"magento/module-media-storage": "100.0.0",
"lib-libxml": "*"
},
"type": "magento2-module",
"version": "100.0.0",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"autoload": {
"files": [ "registration.php" ],
"psr-4": {
"Ankur\\Quickorder\\": ""
}
}
}
After creating a composer, when I run this command in putty
composer require ankur/module-quickorder:100.0.0'
It throws below error in putty
Installation issue: Do not run Composer as root/super user! See [https://getcomposer.org/root][1] for details
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
If anyone can explain the process of installing an extension with the help of composer, it will be appreciated.