系统centos6根据官方文档执行以下安装命令composerglobalrequire"laravel/installer=~1.1"执行结果一切顺利Changedcurrentdirectoryto/home/vagrant/.composer./composer.jsonhasbeencreatedLoadingcomposerrepositorieswithpackageinformationUpdatingdependencies(includingrequire-dev)-Installingsymfony/process(v2.7.3)Downloading:100%-Installingsymfony/console(v2.7.3)Downloading:100%-Installingreact/promise(v2.2.1)Downloading:100%-Installingguzzlehttp/streams(3.0.0)Downloading:100%-Installingguzzlehttp/ringphp(1.1.0)Downloading:100%-Installingguzzlehttp/guzzle(5.3.0)Downloading:100%-Installinglaravel/installer(v1.2.1)Downloading:100%symfony/consolesuggestsinstallingsymfony/event-dispatcher()symfony/consolesuggestsinstallingpsr/log(Forusingtheconsolelogger)WritinglockfileGeneratingautoloadfiles发现~/.composer/vendor/bin目录下没有生成laravel也就无法执行laravelnewblog之类的命令了请问有人碰到过么,如何解决?
2 回答
手掌心
TA贡献1942条经验 获得超3个赞
环境变量我设置过的,我试了好几次,的确不会执行laravel执行文件因为生成在~/.composer/vendor/laravel/installer/laravel所以我手工给了执行权限chmod+x~/.composer/vendor/laravel/installer/laravel然后做了一个软链到/usr/bin/laravel,暂时算解决了,感觉是官方的一个laravel工具的一个bug或者说文档还没有来得及更新?laravel新手,还在试用阶段
添加回答
举报
0/150
提交
取消