pigochu / yii2-jquery-locationpicker

jquery location picker widget for yii2
20 stars 7 forks source link

How get bower-asset/jquery-locationpicker-plugin. #12

Closed PradeepN93 closed 6 years ago

PradeepN93 commented 7 years ago

When I have update the composer by adding "pigochu/yii2-jquery-locationpicker": ">=0.2.0" in composer.json in my file , the composer gives an error pigochu/yii2-jquery-locationpicker": ">=0.2.0 requires bower-asset/jquery-locationpicker-plugin. please suggest me to get the bower-asset/jquery-locationpicker-plugin in my Yii2 file.

pigochu commented 7 years ago

Have you ever installed "fxp/composer-asset-plugin" ?

composer global require "fxp/composer-asset-plugin:^1.2.0"

https://github.com/yiisoft/yii2-app-advanced/blob/master/docs/guide/start-installation.md

PradeepN93 commented 7 years ago

Yes ,"extra": { "asset-installer-paths": { "npm-asset-library": "vendor/npm", "bower-asset-library": "vendor/bower" } }, This code is there in my composer.json file but the composer gives an error, "bower-asset/jquery-locationpicker-plugin" required

Please help me

pigochu commented 7 years ago

No idea ... I create a new project for testing , no error. image

I think you can try update composer-asset-plugin

composer global update --prefer-dist

show the lastest version

D:\projects\rollcall>composer global info
Changed current directory to C:/Users/Pigo/AppData/Roaming/Composer
fxp/composer-asset-plugin v1.2.2 NPM/Bower Dependency Manager for Composer

v1.2.2 is latest version

or reinstall composer and plugin

  1. remove composer
  2. remove composer cache folder
  3. reinstall fxp/composer-asset-plugin
  4. try install yii2-location-picker again