instride-ch / pimcore-data-definitions

Data Definitions Plugin for Pimcore
Other
79 stars 58 forks source link

Unable to install the plugin. #58

Closed roopak27 closed 6 years ago

roopak27 commented 6 years ago

I followed the steps described in the installation, updating minimum stability in the composer.json and the resource bundles in AppKernel.php section but system gives error as below.

Problem 1

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

Can you help me solve this?

dpfaffenbauer commented 6 years ago

Can you try installing the resource-bundle first and then import-definitions?

composer req coreshop/resource-bundle:dev-master
roopak27 commented 6 years ago

@dpfaffenbauer I executed that cmd but got this error now.

Problem 1

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

Installation failed, deleting ./composer.json.

roopak27 commented 6 years ago

I have added "minimum-stability": "dev" in the composer.json but its still showing The package is not available in a stable-enough version according to your minimum-stability setting see https://getcomposer.org/doc/04-schema.md#minimum-stability for more details.

How do I check which composer.json its using?

dpfaffenbauer commented 6 years ago

Hmmm... I just created a completely new Pimcore 5.2.1 project with a freshly installed composer in version 1.6.3 following command:

php composer.phar create-project pimcore/pimcore

The I changed the minimum-requirements and prefer-stable settings in the composer.json

"minimum-stability": "dev",
 "prefer-stable": true

And then required the plugin with:

php composer.phar req w-vision/import-definitions:dev-master

And it worked....

BTW: I also did following:

php composer.phar req coreshop/resource-bundle:dev-master

To get the latest version of the resource-bundle, since the alpha.5 has a bug. Beta is on its way.

roopak27 commented 6 years ago

I used Bitnami Pimcore distribution to install Pimcore. Is it because of that?

dpfaffenbauer commented 6 years ago

don't know, never used it.

roopak27 commented 6 years ago

Hmmm Ok. Thank you. I'll try your way to install Pimcore and see. Thanks again.