fxpio / composer-asset-plugin

NPM/Bower Dependency Manager for Composer
MIT License
893 stars 156 forks source link

Package not found (bower-asset/select2-bootstrap-theme) #298

Closed PowerGamer1 closed 7 years ago

PowerGamer1 commented 7 years ago

When installing through bower directly each of the following commands work just fine: bower install select2 bower install select2-bootstrap-theme

When installing through composer the first package (select2) is installed without a problem: composer.json

{
    "require": {
        "bower-asset/select2": "*"
    }
}

But the second package (select2-bootstrap-theme) produces an error: composer.json

{
    "require": {
        "bower-asset/select2-bootstrap-theme": "*"
    }
}

Error message:

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
    - The requested package bower-asset/select2-bootstrap-theme could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - 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.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
francoispluchino commented 7 years ago

Add the @beta flag in your version of your dependency.

PowerGamer1 commented 7 years ago

Add the @beta flag in your version of your dependency.

Thanks, it worked.

edwardselby commented 6 years ago

yarn add select2-bootstrap-theme@beta didn't work for me, error:

Running webpack ...
 ERROR  Failed to compile with 1 errors                                                                                                                                                                   14:45:14
This dependency was not found:
* select2-bootstrap-theme in ./assets/js/app.js

Config:

window.$ = window.jQuery = require('jquery');

/**
 * Bootstrap
 */
require('../css/global.scss');
require('bootstrap-sass');

/**
 * Bootstrap Select
 */
require('select2');
require('select2-bootstrap-theme');

/**
 * Application Specific JavaScript
 */
require('../js/widget.js');

/**
 * Application Specific StyleSheet
 */
require('../css/widget.css');