gpt4 book ai didi

ruby - 任何插件的 vagrant 插件安装失败

转载 作者:数据小太阳 更新时间:2023-10-29 09:03:33 25 4
gpt4 key购买 nike

运行 vagrant plugin install [plugin] 对任何插件都失败(使用管理员命令提示符)。不确定是什么问题。 dev/null 不在我的机器上,它不应该尝试安装到 VM。

尝试过:

  • 卸载Vagrant,删除.vagrant.d目录,重新安装Vagrant
  • 使用嵌入式 Ruby 更新 Vagrant 的 gem
  • 更新 VirtualBox
  • 禁用 .bashrc 文件(也用 Git Bash 尝试过)

使用:

  • Windows 7 Pro x64 SP1
  • Vagrant 1.7.2
  • VirtualBox 4.3.26

输出:

注意:** = C:/HashiCorp/Vagrant/embedded

C:\Users\Joe\Dropbox\webdev\projects>vagrant plugin install vagrant-hostsupdater
Installing the 'vagrant-hostsupdater' plugin. This can take a few minutes...
**/lib/ruby/2.0.0/rubygems/user_interaction.rb:554:in \`initialize':
Is a directory - /dev/null (Errno::EISDIR)
from **/lib/ruby/2.0.0/rubygems/user_interaction.rb:554:in \`open'
from **/lib/ruby/2.0.0/rubygems/user_interaction.rb:554:in \`initialize'
from **/gems/gems/vagrant-1.7.2/lib/vagrant/bundler.rb:283:in \`new'
from **/gems/gems/vagrant-1.7.2/lib/vagrant/bundler.rb:283:in \`with_isolated_gem'
from **/gems/gems/vagrant-1.7.2/lib/vagrant/bundler.rb:225:in \`internal_install'
from **/gems/gems/vagrant-1.7.2/lib/vagrant/bundler.rb:92:in \`install'
from **/gems/gems/vagrant-1.7.2/lib/vagrant/plugin/manager.rb:62:in \`block in install_plugin'
from **/gems/gems/vagrant-1.7.2/lib/vagrant/plugin/manager.rb:72:in \`call'
from **/gems/gems/vagrant-1.7.2/lib/vagrant/plugin/manager.rb:72:in \`install_plugin'
from **/gems/gems/vagrant-1.7.2/plugins/commands/plugin/action/install_gem.rb:37:in \`call'
from **/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:34:in \`call'
from **/gems/gems/vagrant-1.7.2/lib/vagrant/action/builder.rb:116:in \`call'
from **/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:66:in \`block in run'
from **/gems/gems/vagrant-1.7.2/lib/vagrant/util/busy.rb:19:in \`busy'
from **/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:66:in \`run'
from **/gems/gems/vagrant-1.7.2/plugins/commands/plugin/command/base.rb:14:in \`action'
from **/gems/gems/vagrant-1.7.2/plugins/commands/plugin/command/install.rb:32:in \`block in execute'
from **/gems/gems/vagrant-1.7.2/plugins/commands/plugin/command/install.rb:31:in \`each'
from **/gems/gems/vagrant-1.7.2/plugins/commands/plugin/command/install.rb:31:in \`execute'
from **/gems/gems/vagrant-1.7.2/plugins/commands/plugin/command/root.rb:56:in \`execute'
from **/gems/gems/vagrant-1.7.2/lib/vagrant/cli.rb:42:in \`execute'
from **/gems/gems/vagrant-1.7.2/lib/vagrant/environment.rb:301:in \`cli'
from **/gems/gems/vagrant-1.7.2/bin/vagrant:174:in \`<main>'

最佳答案

检查是否有 c:\dev\null 目录(或者 d:\dev\null 等)。

initialize scripts 查找/dev/null 文件但找到一个目录。通过删除目录,一切正常(对我来说是这样)

似乎是其他一些 linux 移植的应用程序创建了 c:\dev\null 文件夹

关于ruby - 任何插件的 vagrant 插件安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29352622/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com