Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Brandon Keene7,217 Points
Can't reach todo_lists. Error: ExecJS::RuntimeUnavailable in TodoLists#index
First things first: I'm running a full install under linux rather than in the VM. That said, I haven't had much trouble until now. I've followed along with Jason, but when it came time to go to localhost:3000/todo_lists I get a rather ugly error instead of a nice scaffold page:
ExecJS::RuntimeUnavailable in TodoLists#index Showing /home/username/projects/odot/app/views/layouts/application.html.erb where line #6 raised:
Extracted source (around line #6):
Per the advice on this page, I ran gem install execjs gem install therubyracer bundle
...to no effect. Anyone have a suggestion that might get me back on track?
Maciej Czuchnowski36,437 Points
It seems like you need to install NodeJS on your system. In Ubuntu it would be
sudo apt-get install nodejs