Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Ruby on Rails 5 Basics Creating an App Our First Resource

rails db:mirate

cannot see the page on browser after rails db:migrate. localhost:3000 is OK but localhost:3000/posts could not function well. Page error.

ExecJS::ProgramError in Posts#index

TypeError: Object doesn't support this property or method

2 Answers

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

This problem is actually related to your JavaScript runtime, not database migrations. Are you on Windows? If so, did you install Node.js and restart your system? There are also some additional steps here you could try.