安装Vagrant出错 安装Homestead出错失败

Posted God is Love

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装Vagrant出错 安装Homestead出错失败相关的知识,希望对你有一定的参考价值。

安装Vagrant出错 安装Homestead出错

 

 

我们也可以在电脑上创建其它文件夹,只需保证创建的文件夹路径跟 Homestead.yaml 文件中的 folders - map 保持一致即可。

成功启动后,通过 SSH 来登录 Homestead

> vagrant ssh
							

在我们登录成功后,你能看到类似于如下图的界面,现在我们在该终端界面中输入的所有命令都将运行在 Homestead 虚拟机上。

最后尝试关闭 Homestead

> vagrant halt

 

 

 

I use Windows 10 and Git. I have created a VBox with command: vagrant box add laravel/homestead homestead up homestead ssh inside of: vagrant@homestead: I want to execute this command: vagrant provision but I receive this message:

"The program \'vagrant\' is currently not installed. You can install it by typing: sudo apt-get install vagrant"

 

$ vagrant ssh

Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-38-generic x86_64)

 

* Documentation: https://help.ubuntu.com

* Management: https://landscape.canonical.com

* Support: https://ubuntu.com/advantage

 

234 packages can be updated.

101 updates are security updates.

 

 

Last login: Fri Apr 28 02:50:17 2017 from 10.0.2.2

vagrant@homestead:~$ vagrant halt

The program \'vagrant\' is currently not installed. You can install it by typing:

sudo apt install vagrant

 

 

The problem is that you are trying to use vagrant inside the virtual machine (after did ssh) and of coruse you do not have it installed in the virtual machine. Just go oaut of the virtual machin (exit) and in the Windows command prompt run vagrant provision (of course located in the homestead folder). Hope it helps. Bets wishes.

意思就是说:vagrant halt 执行时,执行的窗口不是虚拟机,而是cmd窗口中。

以上是关于安装Vagrant出错 安装Homestead出错失败的主要内容,如果未能解决你的问题,请参考以下文章

Laravel 虚拟开发环境 Homestead

Laravel 虚拟开发环境 Homestead

无法安装 Vagrant box Laravel Homestead

vagrant/homestead/windows 上的 npm 安装错误:EPROTO:协议错误,符号链接

尝试安装 tesserocr 时出错

Windows 7/8/10 系统下Laravel框架的开发环境安装及部署详解(Vagrant + Homestead)