Bee-Lab / bowerphp

A PHP implementation of bower :bird:
MIT License
467 stars 37 forks source link

"Not found", the come back #144

Closed abenevaut closed 8 years ago

abenevaut commented 8 years ago

I got "Not found" message when i try to use bowerphp. I used bowerphp 1.0.*@dev.

I tried like following : (not working with or without --working-dir option)

> bin/bowerphp -vvvv --working-dir="/PATH/assets" install
bower admin-lte.scss#^3.1.2
bower admin-lte.scss#v3.1.2    install
bower bootstrap-sass-official#~3.3.4
bower bootstrap-sass-official#v3.3.6    install
bower jquery#>= 1.9.0      
bower jquery#2.2.3             install
bower jquery-slimscroll#~1.3.6
bower jquery-slimscroll#v1.3.7    install
bower fastclick#~1.0.6     
bower fastclick#v1.0.6         install
Not Found 

The BOWERPHP_TOKEN var is set in env.

export BOWERPHP_TOKEN=MY_TOKEN

Here the package i try to install, the bower.json is in assets directory. Obviously it's working fine with npm and gulp.

I saw #123 and #117 but seem not answer.

garak commented 8 years ago

Can you post the content of your bower.json file? Even only the relevant part (where your package is mentioned)

abenevaut commented 8 years ago

.bowerrc

{
  "directory": "bower"
}

bower.json

{
  "name": "cvepdb/laravel-cms",
  "version": "1.0.0",
  "authors": [
    "Antoine Benevaut <antoine@cvepdb.fr>"
  ],
  "description": "cvepdb/laravel-cms tools",
  "keywords": [
    "cvepdb",
    "laravel-cms",
    "cvepdb/laravel-cms"
  ],
  "license": "Ca va ENCORE parler de bits!",
  "homepage": "http://cvepdb.fr",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ],
  "dependencies": {
    "admin-lte.scss": "^3.1.2",
    "cvepdbjs": "0.1.9",
    "components-font-awesome": "^4.5.0",
    "html5shiv": "^3.7.3",
    "respond": "^1.4.2",
    "Ionicons": "ionicons#^2.0.1",
    "dropzone": "^4.3.0",
    "angular2-build": "^2.0.0-alpha.34",
    "iCheck": "icheck#^1.0.2",
    "select2-bootstrap-theme": "^0.1.0-beta.4",
    "select2": "^4.0.2",
    "Jcrop": "jcrop#^2.0.4"
  },
  "devDependencies": {}
}
clue commented 8 years ago

I used bowerphp 1.0.*@dev.

This is interesting, the latest release is v0.3.6-beta :)

Can you check composer show to get the version currently in use?

garak commented 8 years ago

@clue 1.0.*@dev is just an alias for dev-master

abenevaut commented 8 years ago
> composer show | grep bowerphp
beelab/bowerphp                             dev-master 28b655c An implementation of bower in PHP

-> I'm trying with the v0.3.6-beta

abenevaut commented 8 years ago

With the following, in composer.json :

"require": {
    "php": ">=5.5.9",
    "beelab/bowerphp": "0.3.*@beta",

...

I get the same output.

garak commented 8 years ago

Problem is that we currently support only github repositories, while your package is hosted on gitlab.

abenevaut commented 8 years ago

Hooo, yes when i remove my gitlab package ("cvepdbjs": "0.1.9",), i can get another output.

> bin/bowerphp -vvvv --working-dir="/PATH/assets" install
bower admin-lte.scss#^3.1.2
bower admin-lte.scss#v3.1.2    install
bower bootstrap-sass-official#~3.3.4
bower bootstrap-sass-official#v3.3.6    install
bower jquery#>= 1.9.0      
bower jquery#2.2.3             install
bower jquery-slimscroll#~1.3.6
bower jquery-slimscroll#v1.3.7    install
bower fastclick#~1.0.6     
bower fastclick#v1.0.6         install
bower components-font-awesome#^4.5.0
bower components-font-awesome#4.6.3    install
bower html5shiv#^3.7.3     
bower html5shiv#3.7.3          install
bower respond#^1.4.2       
bower respond#1.4.2            install
Cannot fetch registry info for package Ionicons from search registry (Package not found).

But seems to be another issue 😺

garak commented 8 years ago

It looks like bower is supporting that weird syntax of "packageName": "lowercasepackagename#version". If you try to replace lines like "Ionicons": "ionicons#^2.0.1", with "ionicons": "^2.0.1", it should work

abenevaut commented 8 years ago

Let's follow tickets #145 & #146 😄