【发布时间】:2017-02-17 12:06:45
【问题描述】:
我尝试使用许多不同的 Vagrant Boxes,我发现了 here。我试过了:
- hashicorp/precise64
- ubuntu/trusty32
- ubuntu/trusty64
- ubuntu/xenial64
但是当我尝试安装最新的 Node.js (7.5) 时(我在 Installing Node.js via package manager 上找到了这个):
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
我总是收到这样的错误:
当前不支持标识为“精确”的分发,如果您认为这不正确或希望考虑支持您的分发,请通过 https://github.com/nodesource/distributions/issues 联系 NodeSource
我还尝试为最新的 Ubuntu 服务器下载 ISO 映像并手动将其安装在 VirtualBox 中,在这种情况下,最新的 Node.js 安装工作正常。 我应该使用哪个 Vagrant Box?
另外,我使用带有 VirtualBox 的 Mac OS 来运行 Vagrant。
我的 Vagrant 配置文件:
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.network "forwarded_port", guest: 3306, host: 3309
end
【问题讨论】:
-
ubuntu/trusty64 可以工作 - 我同时使用 trusty 和 xenial 并且它们可以工作。你的 Vagrantfile 怎么样?
-
@FrédéricHenri 我更新了问题描述。
标签: node.js ubuntu vagrant virtualbox