我在Magento-2中开发了一个扩展。当将这个扩展上传到Magento官方网站上时,他们在package.When中发送了一些错误,我在生产模式下检查这一点,它没有显示任何error.Please帮助我创建正确的Magento-2扩展包。
误差
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for magento/magento2ce 2.0.13 -> satisfiable by magento/magento2ce[2.0.13].
- company/module-extensionname 1.0.0 requires magento/framework 100.1.* -> satisfiable by magento/framework[100.1.0-rc1, 100.1.0-rc2, 100.1.0-rc3, 100.1.0, 100.1.1, 100.1.2, 100.1.3, 100.1.4, 100.1.5, 100.1.6, 100.1.7].
- don't install magento/framework 100.1.0-rc1|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.0-rc2|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.0-rc3|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.0|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.1|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.2|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.3|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.4|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.5|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.6|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.7|remove magento/magento2ce 2.0.13
- Installation request for comapny/module-extensionname 1.0.0 -> satisfiable by comapny/module-extensionname[1.0.0].
Installation failed, reverting ./composer.json to its original content.
[Pipeline] }
[Pipeline] // stage
[Pipeline] sh
[DockerOperationsPHP70Magento20CEVarnish] Running shell script
+ echo Failurecomposer.json
{
"name": "company/module-extensionname",
"description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry.",
"type": "magento2-module",
"version": "1.0.0",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"require": {
"php": "~5.5.0|~5.6.0|~7.0.0",
"magento/framework": "100.1.*"
},
"authors": [
{
"name": "Tomas Jindal",
"email": "test@test.com",
"homepage": "https://stackoverflow.com",
"role": "Developer"
}
],
"autoload": {
"files": [ "registration.php" ],
"psr-4": {
"company\\extensionname\\": ""
}
}
}发布于 2017-07-14 11:41:24
给出正确的扩展名,例如,您的扩展名是,请求引用,,而您命名为,RequestQuote,,这在magento市场上是不可接受的。
按照下面的链接制作composer.json文件
https://magento.stackexchange.com/questions/105533/how-to-create-extension-package-in-magento-2
https://stackoverflow.com/questions/45101284
复制相似问题