为什么用composer安装yii2中没有vendor文件夹 [ 未指定版本 ]
Error
The path to yii framework seems to be incorrect.
You need to install Yii framework via composer or adjust the framework path in file requirements.php.
Please refer to the README on how to install Yii.
Warning: require_once(D:\php\basic/vendor/yiisoft/yii2/requirements/YiiRequirementChecker.php) [function.require-once]: failed to open stream: No such file or directory in D:\php\basic\requirements.php on line 23
Fatal error: require_once() [function.require]: Failed opening required 'D:\php\basic/vendor/yiisoft/yii2/requirements/YiiRequirementChecker.php' (include_path='.;C:\php\pear') in D:\php\basic\requirements.php on line 23
共 1 个回答
-
composer global require "fxp/composer-asset-plugin:1.0.0-beta3"
composer create-project --prefer-dist yiisoft/yii2-app-basic basic
The first command installs the composer asset plugin which allows managing bower and npm package dependencies through Composer. You only need to run this command once for all.
摘自:http://www.yiiframework.com/doc-2.0/guide-start-installation.html
xiabai988
最后登录:2014-11-28
在线时长:4小时31分
- 粉丝0
- 金钱0
- 威望0
- 积分40