小编joa*_*ner的帖子

yii2 composer update error:无效的版本字符串"2.*"

我在Yii2项目中使用了composer update ,但它正在退出并出现异常.我已将作曲家更新为最新版本c6cc6dd6070871f4b198ed39f76dd8047c116b02,但它仍然无效:

Importing tag v2.0.2 (2.0.2.0)
Reading bower.json of bower-asset/yii2-pjax (v2.0.1)
Reading /home/xiaoai/.composer/cache/repo/github.com/yiisoft/jquery-pjax/bower-f07ce95f6098c0bd5421789a20789f39a19be73b from cache
Importing tag v2.0.1 (2.0.1.0)
Reading /home/xiaoai/.composer/cache/repo/https---packagist.org/provider-yiisoft$yii2-bootstrap.json from cache
Reading /home/xiaoai/.composer/cache/repo/https---packagist.org/provider-bower-asset$bootstrap.json from cache
Downloading https://bower.herokuapp.com/packages/bootstrap
Writing /home/xiaoai/.composer/cache/repo/https---bower.herokuapp.com-packages/bootstrap-3c71cc99d2fc1c12a3d3e1b27e448ca612a89a1d-package.json into cache
Adding VCS repository bower-asset/bootstrap
Downloading https://api.github.com/repos/twbs/bootstrap
Downloading https://api.github.com/repos/twbs/bootstrap/contents/bower.json?ref=master
Downloading https://api.github.com/repos/twbs/bootstrap/commits/master
Downloading https://api.github.com/repos/twbs/bootstrap/tags?per_page=100
Downloading https://api.github.com/repos/twbs/bootstrap/git/refs/heads?per_page=100



  [UnexpectedValueException]                                              
  Could not parse version constraint <=2.*: Invalid version string "2.*"  

Exception trace:
 () at phar:///usr/bin/composer.phar/src/Composer/Package/Version/VersionParser.php:461
 Composer\Package\Version\VersionParser->parseConstraint() at phar:///usr/bin/composer.phar/src/Composer/Package/Version/VersionParser.php:257
 Composer\Package\Version\VersionParser->parseConstraints() at phar:///usr/bin/composer.phar/src/Composer/Package/Loader/ArrayLoader.php:234
 Composer\Package\Loader\ArrayLoader->parseLinks() at phar:///usr/bin/composer.phar/src/Composer/Package/Loader/ArrayLoader.php:123
 Composer\Package\Loader\ArrayLoader->load() at /home/xiaoai/.composer/vendor/fxp/composer-asset-plugin/Repository/AssetVcsRepository.php:174 …
Run Code Online (Sandbox Code Playgroud)

composer-php yii2

8
推荐指数
2
解决办法
3333
查看次数

mysql 错误 1426 (42000): 为“时间”列指定的精度太大 14。马克西妈妈6岁了

家伙。当我尝试创建带有时间戳类型的表时,我遇到了一个奇怪的麻烦。

create table `test`
 ( `time` timestamp(14) );
Run Code Online (Sandbox Code Playgroud)

错误 1426 (42000):为“时间”列指定的精度 14 太大。最大值为 6。

我认为这14是一个用于存储的字节长度。但似乎是时间精度,因为 6 = 微秒(1/1000000),2012-07-29 00:37:46。000000

任何人都可以解释一下吗?我在在线文档中没有找到它!谢谢

mysql

0
推荐指数
1
解决办法
1万
查看次数

标签 统计

composer-php ×1

mysql ×1

yii2 ×1