0

我在我的 Windows 机器上安装了最新版本的 rails,当我尝试创建一个新应用程序时,我收到以下错误消息任何想法:

C:\Sites>rails new apexa C:/Ruby/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/commands/application.rb: 12:in expand_path': non-absolute home (ArgumentError) from C:/Ruby/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/commands/application.rb:12 from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:ingem_original_require' 来自 C:/Ruby/ lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in require' from C:/Ruby/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/cli.rb:15 from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:ingem_original_require' 来自 C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in require' from C:/Ruby/lib/ruby/gems/1.8/gems/railties-3.2.6/bin/rails:7 from C:/Ruby/bin/rails:19:inload' 来自 C:/Ruby/垃圾箱/导轨:19

4

1 回答 1

0

我有一个类似的问题,并在这里找到了答案:

简而言之,重置您的 %HOME% 环境变量(至少在同一命令提示符下)并重试。

set HOME=
set HOMEDRIVE=
set HOMEPATH=
set HOMESHARE=
于 2013-06-20T20:29:11.440 回答