使用国内composer镜像安装项目报错

其实从来没用comopser安装成功过。问题和过程如下:
1、在windows上用http://docs.phpcomposer.com/Composer-Setup.exe安装composer
2、Wamp、php都已经安装好openssl也打开。
3、新建一个目录,里面放了composer.json,内容如下:
{
"name":"karpoff/yii2-crop-image-upload",
"description":"Yii2Cropimageuploadwidget",
"homepage":"https://github.com/karpoff/yii2-crop-image-upload",
"license":"BSD-3-Clause",
"type":"yii2-extension",
"version":"0.0.1",
"keywords":["yii2","crop","image","upload"],
"authors":[
{
"name":"AntonKarpov",
"email":"karpoff@bk.ru"
}
],
"autoload":{
"psr-4":{
"karpoff\\icrop\\":""
}
},
"require":{
"yiisoft/yii2":"*",
"yiisoft/yii2-imagine":"*",
"mongosoft/yii2-upload-behavior":"*"
},
"repositories":[
{"type":"composer","url":"http://pkg.phpcomposer.com/repo/packagist/"},
{"packagist":false}
]
}
4、然后右键点击,选"ComposerInstall",报错:
Yourrequirementscouldnotberesolvedtoaninstallablesetofpackages.
Problem1
-yiisoft/yii22.0.1requiresbower-asset/jquery2.1.*@stable|1.11.*@stabl
e->nomatchingpackagefound.
-yiisoft/yii22.0.0requiresbower-asset/jquery2.1.*@stable|1.11.*@stabl
e->nomatchingpackagefound.
-yiisoft/yii22.0.1requiresbower-asset/jquery2.1.*@stable|1.11.*@stabl
e->nomatchingpackagefound.
-yiisoft/yii22.0.0requiresbower-asset/jquery2.1.*@stable|1.11.*@stabl
e->nomatchingpackagefound.
-Installationrequestforyiisoft/yii2*->satisfiablebyyiisoft/yii2[2.0
.0,2.0.1].
Potentialcauses:
-Atypointhepackagename
-Thepackageisnotavailableinastable-enoughversionaccordingtoyourmin
imum-stabilitysetting
seef
ormoredetails.
Readforfurthercommon
problems.
5、求安慰
蓝山帝景
浏览 562回答 2
2回答

函数式编程

你漏装了fxp/composer-asset-plugincomposer装上这个就行了仔细看教程啊。。。

慕桂英3389331

composerglobalrequire"fxp/composer-asset-plugin:~1.1.1"这是具体的执行命令
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript