Reputation: 73
I want to make charts in yii2. so I have to install bower highcharts. but when I try to install it, it cant be installed
what should I do to fix that problem?
Upvotes: 1
Views: 500
Reputation: 33548
The error is very clear. You need to install Git in order to run bower install
.
Hovewer, with Yii2 installing and using Bower is not required.
Yii2 is dependent on Composer Asset Plugin - plugin that "allows you to manage project assets (css, js, etc.) in your composer.json without installing NPM or Bower".
You can't correctly and fully install Yii2 without installing this plugin first. Check Installing Yii official guide section:
composer global require "fxp/composer-asset-plugin:^1.2.0"
You can use this tool to install additional bower packages as well, for example by including them in composer.json
along with PHP dependencies with special prefix:
"bower-asset/jquery.inputmask": "~3.2.2",
For more details check plugin docs.
You need to install Git anyways. See Downloads page on Git site. Installation depends on used OS.
Upvotes: 1