其实从来没用comopser安装成功过。问题和过程如下:1、在windows上用http://docs.phpcomposer.com/Composer-Setup.exe安装composer2、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.*@stable->nomatchingpackagefound.-yiisoft/yii22.0.0requiresbower-asset/jquery2.1.*@stable|1.11.*@stable->nomatchingpackagefound.-yiisoft/yii22.0.1requiresbower-asset/jquery2.1.*@stable|1.11.*@stable->nomatchingpackagefound.-yiisoft/yii22.0.0requiresbower-asset/jquery2.1.*@stable|1.11.*@stable->nomatchingpackagefound.-Installationrequestforyiisoft/yii2*->satisfiablebyyiisoft/yii2[2.0.0,2.0.1].Potentialcauses:-Atypointhepackagename-Thepackageisnotavailableinastable-enoughversionaccordingtoyourminimum-stabilitysettingseeformoredetails.Readforfurthercommonproblems.5、求安慰
添加回答
举报
0/150
提交
取消