Vagrant - Bash:找不到命令 [英] Vagrant - Bash: Command not found

查看:77
本文介绍了Vagrant - Bash:找不到命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

寻求 Vagrant 的帮助,因为我认为这是一个服务器变量问题.

Looking for some assistance with Vagrant, for what I believe is a Server Variable issue.

我整个周末都在尝试安装并运行任何类型的 Vagrant.我遵循了:Laravel Homestead 安装指南,以及Sitepoint Homestead Vagrant VM 指南.

I have been trying all weekend to get any kind of Vagrant install up and running. I have followed: Laravel Homestead installation guide, and Sitepoint Homestead Vagrant VM guide.

我使用默认文件夹进行安装.无论我做什么,在安装 Vagrant 之后,我都无法运行 'vagrant up' 或 vagrant init',因为找不到命令 'vagrant'(bash: vagrant: command not found).我正在尝试按照 Sitepoint 的建议从包含 Vagrantfile 的文件夹中执行.

I am using the default folders for install. Whatever I do, after installing Vagrant, I am unable to run 'vagrant up' or vagrant init' because the command 'vagrant' cannot be found (bash: vagrant: command not found). I am trying to execute from the folder with Vagrantfile in it, as suggested by Sitepoint.

我发现这篇堆栈溢出文章:Vagrant 命令停止工作: 命令未在 Windows 上找到,但在当前版本中不起作用,因为该 bin 文件夹为空(请注意,它旁边的嵌入"文件夹已满,子文件夹结构内有几个bin"文件夹).

I found this Stack Overflow article: Vagrant Command Stopped Working: Command not Found on Windows, but with the current version doesn't work as that bin folder is empty (note that the 'embedded' folder beside it is full, with several 'bin' folders down within the subfolder structure).

我对 Vagrant 不够熟悉,不知道我应该将服务器变量设置到哪个文件夹,如果这确实是正确的答案.它必须很简单,因为没有网站在任何地方解决这个特定问题.任何帮助将不胜感激.

I am not familiar enough with Vagrant to know to which folder I should set the server variable, if indeed that is the right answer. It has to be simple, as no sites address this particular issue anywhere. Any assistance will be greatly appreciated.

Win 7、Vagrant 2.1.2、Virtualbox 5.2.14

Win 7, Vagrant 2.1.2, Virtualbox 5.2.14

推荐答案

在撰写本文时,Vagrant v2.1.2 在 i686.msi 文件中缺少 vagrant.exe.

At the time of writing, Vagrant v2.1.2 is missing vagrant.exe in the i686.msi file.

这个答案有两个部分.

感谢您对 Rohit 的支持.

Thanks for your support Rohit.

这篇关于Vagrant - Bash:找不到命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆