fxpio / composer-asset-plugin

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

The requested package could not be found in any version #189

Closed mervick closed 7 years ago

mervick commented 8 years ago

No found bower package

> composer require "bower-asset/jquery-unveil" 

The requested package bower-asset/jquery-unveil 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.
> bower info jquery-unveil

bower jquery-unveil#*           cached git://github.com/luis-almeida/unveil.git#1.3.0
bower jquery-unveil#*         validate 1.3.0 against git://github.com/luis-almeida/unveil.git#*

{
  name: 'jquery-unveil',
  version: '1.3.0',
  main: [
    'jquery.unveil.js'
  ],
  homepage: 'https://github.com/luis-almeida/unveil'
}

Available versions:
  - 1.3.0
  - 1.2.0
  - 1.1.0
  - 1.0.0
You can request info for a specific version with 'bower info jquery-unveil#<version>'
cebe commented 8 years ago

works for me:

$ composer require "bower-asset/jquery-unveil" 
Using version ^1.3 for bower-asset/jquery-unveil       
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing bower-asset/jquery-unveil (1.3.0)       
    Downloading: 100%         

Writing lock file
Generating autoload files
mdmunir commented 8 years ago

does not work for me. Using at extension, not at root.

"bower-asset/handsontable": "0.23.0"

trying "bower-asset/handsontable": "0.23.*@stable" also not work

Faryshta commented 8 years ago

does not work for me. Using at extension, not at root.

You mean sudo composer? Because fxp is installed globally, that means on the home folder. As regular user that would be /home/mdmunir/.composer as root it would be /root/.composer.

I ran the same command as @cebe as normal user and it works, as root it shows me the same error you find.

mdmunir commented 8 years ago

@Faryshta I mean when use require in dependency composer, not in project composer. My project require mysoft/my-hansontable and mysoft/my-hansontable require bower-asset/handsontable. This is does not work for me if using version number.

Faryshta commented 8 years ago

can you provide a test case or something @mdmunir ?

francoispluchino commented 8 years ago

It's always the case with the 1.2.x-dev version of this plugin?