YII2安装和更新报错

报错内容如下:

Your requirements could not be resolved to an installable set of packages.

Problem 1
- yiisoft/yii2 2.0.x-dev requires bower-asset/jquery.inputmask ~3.2.2 -> no
matching package found.
- yiisoft/yii2 dev-master requires bower-asset/jquery.inputmask ~3.2.2 -> no
matching package found.
- yiisoft/yii2 2.0.7 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable
| 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stabl
e -> no matching package found.
- yiisoft/yii2 2.0.5 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stabl
e -> no matching package found.
- Installation request for yiisoft/yii2 >=2.0.5 -> satisfiable by yiisoft/yi
i2[2.0.5, 2.0.6, 2.0.7, dev-master, 2.0.x-dev].

Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your min
imum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more det
ails.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further commo
n problems.

解决办法有二:

一、

改变composer.json配置:

"minimum-stability": "stable",

二、

替换版本:

将DEV版本替换成稳定版

根据以上两种方式还是报错,我又试了试,方法如下:

1、首先更新composer

执行composer global require "fxp/composer-asset-plugin:~1.1"

2、再进行更新

下面这个过程需要从github获取一个Token

D:\qampp\htdocs\yii2\yii2basic>composer update

Loading composer repositories with package information
Updating dependencies (including require-dev)
Reading bower.json of bower-asset/jquery.inputmask (3.1.34)
Could not fetch https://api.github.com/repos/RobinHerbots/jquery.inputmask/commi
ts/f48d10463039a23469e65cc4b5c0b4409e8fb596, please create a GitHub OAuth token
to go over the API rate limit
Head to “这里是一个获取Token的网址”
to retrieve a token. It will be stored in "C:/Users/Administrator/AppData/Roamin
g/Composer/auth.json" for future use by Composer.
Token (hidden):
Token stored successfully.
- Installing yiisoft/yii2-composer (2.0.4)
Downloading: 100%

- Installing ezyang/htmlpurifier (v4.6.0)
Downloading: 100%

- Installing swiftmailer/swiftmailer (v5.4.1)
Downloading: 100%

- Installing bower-asset/jquery (2.2.3)
Downloading: 100%

- Installing bower-asset/yii2-pjax (v2.0.6)
Downloading: 100%

- Installing bower-asset/punycode (v1.3.2)
Downloading: 100%

- Installing bower-asset/jquery.inputmask (3.2.7)
Downloading: 100%

- Installing cebe/markdown (1.1.0)
Downloading: 100%

- Installing yiisoft/yii2 (2.0.7)
Downloading: 100%

- Installing yiisoft/yii2-swiftmailer (2.0.5)
Downloading: 100%

- Installing yiisoft/yii2-codeception (2.0.5)
Downloading: 100%

- Installing bower-asset/bootstrap (v3.3.5)
Downloading: 100%

- Installing yiisoft/yii2-bootstrap (2.0.6)
Downloading: 100%

- Installing yiisoft/yii2-debug (2.0.6)
Downloading: 100%

- Installing bower-asset/typeahead.js (v0.11.1)
Downloading: 100%

- Installing phpspec/php-diff (v1.1.0)
Downloading: 100%

- Installing yiisoft/yii2-gii (2.0.5)
Downloading: 100%

- Installing fzaninotto/faker (v1.5.0)
Downloading: 100%

- Installing yiisoft/yii2-faker (2.0.3)
Downloading: 100%

fzaninotto/faker suggests installing ext-intl (*)
Writing lock file
Generating autoload files

时间: 2024-10-10 15:33:58

YII2安装和更新报错的相关文章

windows7安装Office 2013后,安装Visio 2013报错:安装程序找不到office.zh-cn

虽然windows 8.1(cn_windows_8.1_professional_vl_with_update_x64_dvd_4050293.iso)是款不错的系统,但是由于我的无线一直不能正常使用且经常出现不能正常更新,还有桌面卡住的几率比之前多太多了等先重回windows7 X64. 我安装的是cn_windows_7_ultimate_with_sp1_x64_dvd_u_677408.iso,使用正常,且之前也是使用的这款很稳定,安装Office 2013(cn_office_pro

Linux安装ElasticSearch启动报错的解决方法

Linux安装ElasticSearch后,ElasticSearch是不能用root用户启动的,以root用户启动会报错Refer to the log for complete error details,出现这种情况该如何解决呢?下面小编就为大家带来Linux安装ElasticSearch启动报错的解决方法,一起去看看吧 今天就出现的异常问题专门解决一下.你安装好ElasticSearch以后,在启动的时候需要注意的问题是,ElasticSearch是不能用root用户启动的(这是根据el

Vue热更新报错(log.error(&#39;[WDS] Errors while compiling. Reload prevented.&#39;))

log.error('[WDS] Errors while compiling. Reload prevented.');中的WDS其实是webpack-dev-serverwebpack的意思,用来实现自动刷新的.但你在Vue组件进行频繁刷新时,如果没有安装Webpack,虽然页面可以正常显示,但是控制台会在你每次刷新时就报错.解决方法是:在开发目录下安装Webpack,命令为npm install webpack-dev-server --save-dev即可,安装完成之后会在node_mo

cnmp安装失败,报错npm ERR! enoent ENOENT: no such file or directory,

1.cnmp安装失败 2.提示如下: bogon:node_modules liangjingming$ sudo npm install cnpm -g --registry=https://registry.npm.taobao.org Password: /usr/local/lib └── (empty) npm ERR! Darwin 16.4.0 npm ERR! argv "/usr/local/Cellar/node/7.8.0/bin/node" "/usr

open-falcon 安装Dashboard时候报错&quot;SSLError: The read operation timed out&quot;

在部署open-falcon环境过程中,安装Dashboard时候报错"SSLError: The read operation timed out".如下: [[email protected] dashboard]# ./env/bin/pip install -r pip_requirements.txt Downloading/unpacking Flask==0.10.1 (from -r pip_requirements.txt (line 1)) Downloading

Linux上安装CherryTree,报错无法找到 gtksourceview2

安装CherryTree,报错无法找到 gtksourceview2    CherryTree(富文本辑器)是一个全功能的层次大纲窗口和组织者支持富文本.图像.语法高亮显示.列表.基本表, 保存为 PDF, 导出到 HTML和文本.密码保护和更多.另外,CherryTree 是将整个笔记本保存为一个文件(sqlite格式或者xml格式),图片/表格这些都全部保存到里面. 官方下载地址:CherryTree(戳我) last version 0.38.1 (June 9th, 2017) 1.

Win7 64bit 安装VisualSVN出现报错:Servic &#39;VisualSVN Server&#39; failed to start.解决办法

问题描述: Win7 64bit 安装VisualSVN时出现报错: Servic 'VisualSVN Server' failed to start.Please check VisualSVN Server log in Event Viewer for more details Service 'VisualSVN Server' failed to start. 解决办法: 控制面板——管理工具——服务——VisualSVN Server——鼠标右键——属性——登录——选择“本地系统账

linux下编译安装php各种报错大集合

PHP开源脚本语言 PHP(外文名: Hypertext Preprocessor,中文名:"超文本预处理器")是一种通用开源脚本语言.语法吸收了C语言.Java和Perl的特点,入门门槛较低,易于学习,使用广泛,主要适用于Web开发领域.PHP的文件后缀名为php. 本文为大家整理汇总了一些linux下编译安装php各种报错大集合 ,感兴趣的同学参考下. 报错1:make 后报错如下: Generating phar.php /home/oldboy/tools/php-5.3.27

windows8.1下安装msi文件报错

新安装了win8.1系统体验体验,可是安装msi文件的软件报internal error2502和2503错误,可以换一种安装方式. 不是直接点开安装,如图所示打开命令提示符: 使用msiexec /package 安装文件的全路径  进行安装比如:C:\Windows\system32>msiexec /package C:\Users\Administrator\Downloads\VisualSVN-Server-2.7.7.msi 即可解决报错问题 windows8.1下安装msi文件报