关于ubuntu使用vagrant安装homestead问题

WBOY
Release: 2016-06-06 20:06:47
Original
1335 people have browsed it

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

<code>vagrant box add laravel/homestead /home/waterchan/homestead.box
</code>
Copy after login
Copy after login

2.使用composer全局安装homestead

<code>composer global require "laravel/homestead=~2.0"</code>
Copy after login
Copy after login

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

回复内容:

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

<code>vagrant box add laravel/homestead /home/waterchan/homestead.box
</code>
Copy after login
Copy after login

2.使用composer全局安装homestead

<code>composer global require "laravel/homestead=~2.0"</code>
Copy after login
Copy after login

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!