Home  >  Article  >  Backend Development  >  关于ubuntu使用vagrant安装homestead问题

关于ubuntu使用vagrant安装homestead问题

WBOY
WBOYOriginal
2016-06-06 20:06:471244browse

我离线下载了homestead,然后离线安装它。以下是我的安装步骤:
1.用外挂文件的方式添加盒子

vagrant box add laravel/homestead /home/waterchan/homestead.box

2.使用composer全局安装homestead

composer global require "laravel/homestead=~2.0"

感觉是没有安装成功,因为在/home/waterchan下没找到.composer目录。composer安装homestead时会把它安装到.composer目录下的vendor目录。
请问大家,自己下载了的homestead后,应该如何安装。

回复内容:

我离线下载了homestead,然后离线安装它。以下是我的安装步骤:
1.用外挂文件的方式添加盒子

vagrant box add laravel/homestead /home/waterchan/homestead.box

2.使用composer全局安装homestead

composer global require "laravel/homestead=~2.0"

感觉是没有安装成功,因为在/home/waterchan下没找到.composer目录。composer安装homestead时会把它安装到.composer目录下的vendor目录。
请问大家,自己下载了的homestead后,应该如何安装。

安装composer 是不会自动创建 ~/.composer 目录的

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn