Closed M-Fares closed 7 years ago
I have the same problem
I can not install this widget too.
As https://github.com/smalot/bootstrap-datetimepicker is not registered in https://packagist.org/, it is showing this error. We can do following:
bower install smalot-bootstrap-datetimepicker#2.3.1
This will copy required files in \vendor\bower\smalot-bootstrap-datetimepicker
directory.Remove "bower-asset/smalot-bootstrap-datetimepicker": "2.3.1"
from cloned project's composer.json.
It should look like this after removing
"require": {
"yiisoft/yii2": "~2.0",
"yiisoft/yii2-bootstrap": "~2.0.0"
},
Commit changes
git add .
git commit -m "remove dependency."
Update yii2's composer.json to following: (Please change url
according to path where you have cloned repo.)
"repositories": [
{
"type":"vcs",
"url":"file://D:\\programs\\xampp\\htdocs\\packages\\yii2-date-time-picker-widget-master"
}
],
"require": {
...
"2amigos/yii2-date-time-picker-widget": "dev-master"
},
composer update --prefer-source
Now datetimepicker widget is installed.
This issue is quite old (sorry for being unresponsive). I am going to close it as we have already solved what was the subject of it.
in composer.json write : "minimum-stability": "dev", "prefer-stable": true,
and in CMD composer require 2amigos/yii2-date-picker-widget:"*"
using the following command I get the following result: sudo composer require 2amigos/yii2-date-time-picker-widget:~1.0
./composer.json has been updated 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
Potential causes:
Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.
Installation failed, reverting ./composer.json to its original content.