I\'ve tried to find some solution for this, but I really couldn\'t find anything related with the errors that is appearing to me when I run the rails command:
I fixed this updating therubyracer gem from version '0.12.2' to '0.12.3'
therubyracer