yii2-users-module icon indicating copy to clipboard operation
yii2-users-module copied to clipboard

Can't install with composer

Open samirmember opened this issue 10 years ago • 7 comments

Hi, I have an issue when I use composer to install the module. Here is the message:

...
Reading bower.json of bower-asset/icheck (1.0.2)
Reading bower.json of bower-asset/icheck (1.0.1)
  - Installing vova07/yii2-control-widget (0.1.0)
    Downloading: connection...    Downloading: 100%

  - Installing vova07/yii2-rbac-module (0.1.0)
    Downloading: connection...    Downloading: 0%
    Downloading: 100%
    Invalid zip file, retrying...
  - Installing vova07/yii2-rbac-module (0.1.0)
    Downloading: connection...    Downloading: 0%
    Downloading: 100%
    Invalid zip file, retrying...
  - Installing vova07/yii2-rbac-module (0.1.0)
    Downloading: connection...    Downloading: 0%
    Downloading: 100%
    Failed to download vova07/yii2-rbac-module from dist: 'D:\wamp\www\eligue\ve
ndor/vova07/yii2-rbac-module/29c84b8e566aa6a782c61dbc687e3c76' is not a zip arch
ive.
    Now trying to download from source
  - Installing vova07/yii2-rbac-module (0.1.0)
    Cloning 11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f



  [RuntimeException]
  Failed to clone [email protected]:vova07/yii2-start-rbac-module.git, git was n
  ot found, check that it is installed and in your PATH env.
  'git' n'est pas reconnu en tant que commande interne
  ou externe, un programme exécutable ou un fichier de commandes.



require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update]
[--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-
packages] [packages1] ... [packagesN]

Any solution please?

samirmember avatar Feb 19 '15 08:02 samirmember

Hi @samirmember, In this weekend I'll try to solve the problem. Thanks for report.

vova07 avatar Feb 19 '15 08:02 vova07

OK thanks. Just let us know when it's done.

Thanks again.

samirmember avatar Feb 19 '15 08:02 samirmember

Invalid zip file, retrying...

  • Installing vova07/yii2-rbac-module (0.1.0) still have error

jmn3390 avatar May 07 '15 02:05 jmn3390

Hi, facing the same problem Installing vova07/yii2-rbac-module (0.1.0) still have error

Failed to download vova07/yii2-rbac-module from dist: '/var/www/domainerror/vendor/vova07/yii2-rbac-module/adff590a9d1a530fff1456d9ff5151fc' is not a zip archive. Now trying to download from source

[RuntimeException] Failed to execute git checkout '11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f' -- && git reset --hard '11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f' fatal: reference is not a tree: 11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f

jayeshbl avatar May 28 '15 12:05 jayeshbl

Hi, I have the same error

  • Installing vova07/yii2-rbac-module (0.1.0)
    Downloading: 100%
    Invalid zip file, retrying...

    • Installing vova07/yii2-rbac-module (0.1.0) Downloading: 100%
      Invalid zip file, retrying...
    • Installing vova07/yii2-rbac-module (0.1.0) Downloading: 100%
      Failed to download vova07/yii2-rbac-module from dist: '/var/www/host1/vendor/vova07/yii2-rbac-module/01918e0203bbf5261ece0e609c640852' is not a zip archive. Now trying to download from source
    • Installing vova07/yii2-rbac-module (0.1.0) Cloning 11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f 11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f is gone (history was rewritten?)

    [RuntimeException] Failed to execute git checkout '11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f' -- && git reset --har
    d '11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f' --
    fatal: reference is not a tree: 11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f

pitonn avatar Jul 24 '15 19:07 pitonn

Привет, Вова! i have same problem, try install rbac & user modules and get same error:

D:!Dev\Web\project.ru\www>composer require --prefer-dist vova07/yii2-users -module "*" ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev)

  • Installing vova07/yii2-control-widget (0.1.0) Downloading: 100%

  • Installing vova07/yii2-rbac-module (0.1.0) Downloading: 100% Failed to download vova07/yii2-rbac-module from dist: 'D:!Dev\Web\pfp-solut ion.ru\www\vendor/vova07/yii2-rbac-module/a546e5ce3a8dd3a17768be2a39480e02' is n ot a zip archive. Now trying to download from source

  • Installing vova07/yii2-rbac-module (0.1.0) Cloning 11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f 11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f is gone (history was rewritten?)

    [RuntimeException] Failed to execute git checkout "11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f" -

  • && git reset --hard "11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f" -- fatal: reference is not a tree: 11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f

Tpona avatar Aug 16 '15 12:08 Tpona

Add to composer.json:

"repositories":[ { "type": "git", "url": "https://github.com/vova07/yii2-users-module", "url": "https://github.com/vova07/yii2-rbac-module" } ]

BrSlava avatar Aug 30 '15 13:08 BrSlava