T
T
teodor7teodor72021-11-01 20:33:20
Yii
teodor7teodor7, 2021-11-01 20:33:20

Installing Yii2 how to solve .vendor/bower/jquery/dist error?

Installation error

The file or directory to be published does not exist: /var/www/site/vendor/bower/jquery/dist


php 7.0
Composer version 2.1.10

php composer.phar require --prefer-dist yiisoft/yii2-jui
results in error
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - yiisoft/yii2-jui dev-master requires bower-asset/jquery-ui ~1.12.1 -> could not be found in any version, but the following packages provide it:
      - kriss/yii2-calendar-schedule Yii2 Calendar Schedule
      - ommu/gii Gii Generator Template from OMMU
      - ommu/faq Frequency Asked Question Module from OMMU
      - ommu/testimony Testimony Module from OMMU
      - ommu/support Support Module from OMMU
      - ommu/users Users Module from OMMU
      - yuncms/framework The Yuncms Framework.
      Consider requiring one of these to satisfy the bower-asset/jquery-ui requirement.
    - yiisoft/yii2-jui 2.0.x-dev is an alias of yiisoft/yii2-jui dev-master and thus requires it to be installed too.
    - Root composer.json requires yiisoft/yii2-jui 2.0.x-dev -> satisfiable by yiisoft/yii2-jui[2.0.x-dev (alias of dev-master)].

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.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require yiisoft/yii2-jui:*" to figure out if any version is installable, or "composer require yiisoft/yii2-jui:^2.1" if you know which you need.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question