繁体   English   中英

gem'tzinfo-data',平台:[:mingw,:mswin,:x64_mingw]命令行错误

[英]gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw] Command line error

我已经安装了窗轨安装程序,并且在执行此命令时

gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]

我正进入(状态

ERROR:  While executing gem ... (Gem::CommandLineError)
    Unknown command tzinfo-data,

不知道我在想什么。

您发布的行不是命令,并不意味着可以在命令行上运行。 而是将行添加到应用程序根目录中的Gemfile中并运行:

bundle install

在命令行上安装该gem以及Gemfile提到的所有其他gem。

好吧,你做错了。 您应该将其添加到Gemfile

# Gemfile
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]

并与bundle install

或通过命令行运行

gem install 'tzinfo-data' --platform=mingw --platform=mswin --platform=x64_mingw

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM