Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bower folder is not found in vendor folder in yii2 basic application

I had downloaded a basic yii2 application.And then pushed into git.But then in other pc I installed all the dependencies using a composer. But I dont have bower folder now so getting error:

The file or directory to be published does not exist: C:\xampp\htdocs\jumpbyte-site\vendor\bower/jquery/dist'

My composer.json file has following require dependencies:

"require": {
        "php": ">=5.4.0",
        "yiisoft/yii2": "*",
        "yiisoft/yii2-bootstrap": "*",
        "yiisoft/yii2-swiftmailer": "*",
        "himiklab/yii2-sitemap-module": "*"
    },
like image 433
Ankita Avatar asked Mar 25 '15 13:03

Ankita


1 Answers

To manage bower and npm package dependencies through Composer, you need to install (globally) fxp/composer-asset-plugin :

composer global require "fxp/composer-asset-plugin:~1.1.1"
composer install

Read more : http://www.yiiframework.com/doc-2.0/guide-start-installation.html#installing-via-composer

like image 164
soju Avatar answered Sep 23 '22 14:09

soju