Yii2 composer 安装失败,求助 [ 新手入门 ]
官网安装教程 http://www.yiichina.com/download 上说的,要执行这一步 php composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta3",但是输入却报错,提示“Could not open input file: composer.phar”。
Win7 wamp环境,已经安装composer。
Basic usage: composer <command>
For more information just type "composer".
D:\>php composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta3"
Could not open input file: composer.phar
D:\>
共 11 条回复
-
我现在安装成功了,其实官网说的是错误的。正确的安装命令是 :
composer global require "fxp/composer-asset-plugin:1.0.0-beta3"
共 1 条回复 -
zone_g@163.com 回复于 2016-11-30 16:44 举报
php composer.phar windows下这个命令直接替换成composer;也就是:
composer global require "fxp/composer-asset-plugin:1.0.0-beta3"
共 1 条回复bittersweet666 回复于 2016-12-22 15:06 回复还真的可以啊,试了半天不行,你这个方法一下子就安装好了,谢谢!
zhishang , bittersweet666 觉得很赞 -
15510787005 回复于 2017-01-19 18:02 举报
$ composer global require "fxp/composer-asset-plugin:^1.3.1"
Changed current directory to C:/Users/lenovo/AppData/Roaming/Composer[Composer\Exception\NoSslException]
The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable
ls' option to true.require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with
[--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] []... -
window上安装不要用linux命令,windows上的写法是composer global require "fxp/composer-asset-plugin:1.2.0
具体安装步奏可以看这:win7系统下安装yii2
zhishang 觉得很赞
phptest
最后登录:2018-12-03
在线时长:9小时54分
- 粉丝5
- 金钱118
- 威望0
- 积分208