xsl*_*ibx 22 terminal zsh laravel
我试图为一个Laravel应用程序启动Homestead 2.0,但每次我运行
homestead up
Run Code Online (Sandbox Code Playgroud)
我得到了输出
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/shared_helpers.rb:89:in `expand_path': couldn't find HOME environment -- expanding `~' (ArgumentError)
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/shared_helpers.rb:89:in `expand_path'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/shared_helpers.rb:89:in `user_data_path'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/plugin/manager.rb:16:in `user_plugins_file'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/plugin/manager.rb:27:in `instance'
from /Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/lib/vagrant/pre-rubygems.rb:22:in `<main>'
Run Code Online (Sandbox Code Playgroud)
什么是couldn't find HOME environment -- expanding'意思,我该如何解决?我正在使用Oh-my-zsh作为shell.
rah*_*mat 64
使用以下命令搜索php.ini: php --ini
在你的php.ini文件中,设置variables_order = "EGPCS".
而已.
我有同样的问题.作为解决方法,您可以添加
ENV["HOME"] = "/Users/your-user-name"
到文件
/Applications/Vagrant/embedded/gems/gems/vagrant-*version*/lib/vagrant/shared_helpers.rb
Run Code Online (Sandbox Code Playgroud)
在require "tempfile"它下面启动并运行
| 归档时间: |
|
| 查看次数: |
5955 次 |
| 最近记录: |