bLaXjack bLaXjack - 5 months ago 33
Ruby Question

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

I have install the window rails installer and when i execute this command

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


I am getting

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


not sure what i am missing.

Answer

The line you posted isn't a command, it is not meant to be run on the command line. Instead you add the line to your Gemfile in the root of your application and run:

bundle install

on your command line to install that gem and all other gems mentioned in the Gemfile.