autodetect': Could not find a JavaScript runtime

151 views
Skip to first unread message

Jeff Kyzer

unread,
Jul 9, 2012, 12:22:07 AM7/9/12
to rubyonra...@googlegroups.com
Hey

I was working with Railinstaller, but everytime i turned around I found something new had changed.  Soo I thought I would give Ubuntu a try .  I do like unix better then window.  anyway...  I created a new project then went to run rail server only to find this error - autodetect': Could not find a JavaScript runtime.

I cant seem to get around this problem - any thoughts

Thanks in advance
Jeff

Colin Law

unread,
Jul 9, 2012, 3:25:26 AM7/9/12
to rubyonra...@googlegroups.com
On 9 July 2012 05:22, Jeff Kyzer <kyze...@gmail.com> wrote:
> Hey
>
> I was working with Railinstaller, but everytime i turned around I found
> something new had changed. Soo I thought I would give Ubuntu a try . I do
> like unix better then window. anyway... I created a new project then went
> to run rail server only to find this error - autodetect': Could not find a
> JavaScript runtime.

Have a look at the Rails Guide on Getting Started. Section 4.1
explains what this is about.

Colin

Chitrank Samaiya

unread,
Jul 9, 2012, 12:42:05 AM7/9/12
to rubyonra...@googlegroups.com
Hi,

Include rubyracer and execjs gems in ur gemfile install the bundle and go for it.

Jeff Kyzer

unread,
Jul 9, 2012, 1:54:53 PM7/9/12
to rubyonra...@googlegroups.com
Is there somewhere that explains the new updates to gem files like needing rubyracer or execjs - like what things have changed?  When I first started working with rails about 4 months ago there was no need for  
thanks

Greg Donald

unread,
Jul 9, 2012, 2:33:18 PM7/9/12
to rubyonra...@googlegroups.com
On Mon, Jul 9, 2012 at 12:54 PM, Jeff Kyzer <kyze...@gmail.com> wrote:
> Is there somewhere that explains the new updates to gem files like needing
> rubyracer or execjs - like what things have changed? When I first started
> working with rails about 4 months ago there was no need for
> thanks

I looked and didn't see much either. Ended up running `apt-get
install nodejs` to make it stop complaining. Seems like they are
assuming a lot about anyone's particular website needs these days.
"Your website doesn't have a server side js backend? You are so
2011!"


--
Greg Donald

Mandeep Kaur

unread,
Jul 10, 2012, 1:43:55 AM7/10/12
to rubyonra...@googlegroups.com
On Mon, Jul 9, 2012 at 9:52 AM, Jeff Kyzer <kyze...@gmail.com> wrote:
> Hey
>
> I was working with Railinstaller, but everytime i turned around I found
> something new had changed. Soo I thought I would give Ubuntu a try . I do
> like unix better then window. anyway... I created a new project then went
> to run rail server only to find this error - autodetect': Could not find a
> JavaScript runtime.

$ sudo apt-get install nodejs

This will remove your problem.

--
Mandeep Kaur
http://mandeepsimak.wordpress.com/
Reply all
Reply to author
Forward
0 new messages