is there a way of installing therubyracer in windo

2019-07-04 17:31发布

问题:

Is there a way of installing therubyracer gem i.e required to run a RoR project in windows?

I've tried normal way, but it wouldn't and then i tried installing cygwin and then tried installing gem, but still no luck,

Anyone successful in installing this in windows? I can even try the hard methods also (if there're any possible solutions)

回答1:

I used therubyracer_for_windows. It works for me.



回答2:

If you need a JS runtime for asset compilation (and other tasks), on Windows it's perfectly safe to simply omit the gem in your Gemfile.

Windows already has a JS runtime, and as far as I am aware, Rails makes use of it when it detects it.

Have a look at the description here, I think you will find it informative.

https://github.com/sstephenson/execjs