Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install using composer: Package firegento/module-devdashboard has no version defined. #14

Open
SiarheyUchukhlebau opened this issue Mar 14, 2018 · 3 comments

Comments

@SiarheyUchukhlebau
Copy link

In the master branch, the version was unspecified in the composer.json file which leads to errors:

ubuntu@ip-172-31-31-155:/var/www/html$ sudo -u www-data composer require firegento/module-devdashboard

[UnexpectedValueException]
Failed loading package in /var/www/html/zips/DevDashboard2-master.zip: Package firegento/module-devdashboard has no version defined.

[UnexpectedValueException]
Package firegento/module-devdashboard has no version defined.

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] []...

When I unpack the package and specify the version mannualy, then pack it back and re-run installation all is fine.

@schmengler
Copy link
Contributor

schmengler commented Mar 15, 2018

A version in composer.json is not necessary if tags are used. But since there is no release yet, there are no tags and you have to require a version with "dev" stability. Depending on your composer configuration you have to do this explicitly.

The following should work

composer require firegento/module-devdashboard dev-master@dev --prefer-source

@borriglione
Copy link
Contributor

@schmengler maybe we just add the tag 0.1.0 ?

@milindsingh
Copy link

I have forked and added the package on packagist for the time it's actually released.
https://packagist.org/packages/opencommerce/module-devdashboard

So installation with composer require opencommerce/module-devdashboard will now, if you need

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants