學習Rail途中之有困難
照著 http://rails.ruby.tw/ 用windows 10 一步步走
圖中在 " hellow rails' 這個地方localost:3000跑不出來呈現以下錯誤:
----------------------------------------------------------------
ExecJS::ProgramError in Welcome#index
Showing C:/blog/app/views/layouts/application.html.erb where line #5 raised:
TypeError: 物件不支援此屬性或方法
Rails.root: C:/blog
Application Trace | Framework Trace | Full Trace
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb__1109243250_73467580'
--------------------------------------------------------------------
搜尋網頁上的文章後,建議安裝 node.js
Had the same issue OS- Windows 8 Error- 'ExecJS::RuntimeError...' Solution- missing Node.js
圖中在 " hellow rails' 這個地方localost:3000跑不出來呈現以下錯誤:
----------------------------------------------------------------
ExecJS::ProgramError in Welcome#index
Showing C:/blog/app/views/layouts/application.html.erb where line #5 raised:
TypeError: 物件不支援此屬性或方法
Rails.root: C:/blog
Application Trace | Framework Trace | Full Trace
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb__1109243250_73467580'
--------------------------------------------------------------------
搜尋網頁上的文章後,建議安裝 node.js
Had the same issue OS- Windows 8 Error- 'ExecJS::RuntimeError...' Solution- missing Node.js
- install Node.js from http://www.nodejs.org/download/
- Restart the computer 重新開機之後。
終於成功可以show 出來了,雖然不知道是啥原因大概是javascript....提供訊息給碰到相同問題的朋友
留言
張貼留言