luyadev / luya

LUYA is a scalable web framework and content management system with the goal to please developers, clients and users alike.
https://luya.io
MIT License
811 stars 205 forks source link

Composer Error while install #1801

Closed GaneshKandu closed 6 years ago

GaneshKandu commented 6 years ago

What steps will reproduce the problem?

running this command https://luya.io/guide/install php composer.phar create-project luyadev/luya-kickstarter:~1.0.0

What is the expected result?

php composer.phar create-project luyadev/luya-kickstarter:~1.0.0
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Installing luyadev/luya-kickstarter (1.0.1.1)
  - Installing luyadev/luya-kickstarter (1.0.1.1): Loading from cache
Created project in /home/soft/public_html/manual/luya/luya-kickstarter
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
    - yiisoft/yii2-gii 2.0.7 requires bower-asset/typeahead.js 0.10.* | ~0.11.0 -> no matching package found.
    - yiisoft/yii2-gii 2.0.6 requires bower-asset/typeahead.js 0.10.* | ~0.11.0 -> no matching package found.
    - yiisoft/yii2-gii 2.0.5 requires bower-asset/typeahead.js 0.10.* | ~0.11.0 -> no matching package found.
    - yiisoft/yii2-gii 2.0.4 requires bower-asset/typeahead.js 0.10.* -> no matching package found.
    - yiisoft/yii2-gii 2.0.3 requires bower-asset/typeahead.js 0.10.* -> no matching package found.
    - yiisoft/yii2-gii 2.0.2 requires bower-asset/typeahead.js 0.10.* -> no matching package found.
    - yiisoft/yii2-gii 2.0.1 requires bower-asset/typeahead.js 0.10.* -> no matching package found.
    - yiisoft/yii2-gii 2.0.0 requires bower-asset/typeahead.js 0.10.* -> no matching package found.
    - Installation request for yiisoft/yii2-gii ~2.0.0 -> satisfiable by yiisoft/yii2-gii[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7].

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.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

What do you get instead? (A Screenshot can help us a lot!)

untitled

LUYA Check ouput (run this script and post the result: luyacheck.php)

Additional infos

Q A
LUYA Version 1.0.1.1
PHP Version 7.0.12
Platform Apache
Operating system Linux Server

1: [in_array('mod_rewrite', apache_get_modules())] true 2: [ini_get('short_open_tag')] '1' 3: [ini_get('error_reporting')] '32767' 4: [phpversion()] '7.0.12' 6: [php_sapi_name()] 'apache2handler' 7: [isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : unknown] 'Apache/2.2.31 (Unix)'

nadar commented 6 years ago

hi @GaneshKandu. Did you install the fxp global composer plugin composer global require "fxp/composer-asset-plugin:~1.4"?

GaneshKandu commented 6 years ago

No

nadar commented 6 years ago

take a look at: https://luya.io/guide/install-windows or if you are on unix system https://luya.io/guide/install

GaneshKandu commented 6 years ago

if i am adding fxp/composer-asset-plugin to require of composer.json of luyadev/luya-kickstarter should it work?

nadar commented 6 years ago

no, its a global composer plugin.

nadar commented 6 years ago

You could use this: https://asset-packagist.org/ but make sure to configure properly (https://asset-packagist.org/site/about section yii2)

GaneshKandu commented 6 years ago

ok ! Thanks