I fixed this error by uncommenting *gem 'therubyracer', 'platforms: :ruby' * # this is a javascript runtime in Gemfile
Thank you, Colin. 在 2015年12月14日星期一 UTC+8下午5:05:54,Colin Law写道: > > On 14 December 2015 at 07:42, Fu Qiang Zhang <[email protected] > <javascript:>> wrote: > >> I am new to rails. >> >> >> After I setup *env :* >> >> <https://lh3.googleusercontent.com/-dHZwTLXY3yE/Vm5xFtHp13I/AAAAAAAAB7s/PhmgkuumaE4/s1600/2015-12-14_153429.png> >> 1. created first project with command *rails new firstrail* >> 2. Enter demo directory >> 3. run command *rails server* >> >> > >> >> Here, I got the *error* *:* >> >> >> <https://lh3.googleusercontent.com/-x_gudNvq7Qc/Vm5yAfZHTlI/AAAAAAAAB74/_J9_BzRtjU8/s1600/2015-12-14_153756.png> >> uglifier 2.7.2 was installed. I don't know how to fix this error. >> Does any know how to fix this ? >> *Please* help me out, thank you ! >> > > Do you see any errors if you run > bundle install > It should not have been necessary to run it manually as it is run > automatically when you do rails new, but perhaps there was an error that > you did not notice. It is necessary to re-run bundle if you change Gemfile. > > Otherwise then post the details of the error when you run the server > please. Copy/paste the full terminal output that you get when you run > rails s > > Colin > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f1b5aee2-a087-423a-a5eb-3bba8c20cb76%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

