“x64_mingw"不是有效平台 [英] 'x64_mingw' is not a valid platform

查看:37
本文介绍了“x64_mingw"不是有效平台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行 rails new app 命令时,进程在 bundle 处停止,给我上述错误.我有 ruby​​ 2.0.0p195,rails 4.2.0.beta4.我正在尝试遵循 Michael Hartl 的教程.我认为该命令运行良好,直到我安装了这个版本的 rails ......我试图卸载它,但看起来 gem uninstall 不想工作.我该怎么办?

When I run rails new app command the process stops at bundle giving me the above error. I have ruby 2.0.0p195, rails 4.2.0.beta4. I m trying to follow on Michael Hartl's tutorial. The command worked fine I think until I installed this version of rails... I tried to uninstall it but it looks like gem uninstall does not want to work. What should I do?

推荐答案

检查你的 gemfile 你会看到这样的gem 'tzinfo-data',平台:[:mingw, :mswin] 或gem 'tzinfo-data', 平台: [:mingw, :mswin, :x64_mingw]

check your gemfile you will see there like this gem 'tzinfo-data', platforms: [:mingw, :mswin] OR gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]

如果你有 gem 'tzinfo-data',平台:[:mingw, :mswin, :x64_mingw]然后将其替换为gem 'tzinfo-data', 平台: [:mingw, :mswin]

if you have gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw] then replace this with gem 'tzinfo-data', platforms: [:mingw, :mswin]

然后保存文件并启动包更新命令.

and after that save file and fire bundle update command .

这篇关于“x64_mingw"不是有效平台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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