更新:现在一切都正常了!
感谢deep,我安装了node.js,然后出现了TZInfo :: DataSourceNotFound错误,通过添加
非常感谢您!
首先,我是一个完全的Rails新手(让您知道我有多菜:我觉得自己只是在这里发布问题的专家),这是我在这里的第一个问题,请原谅我如果表达不够清楚。
因此,我是一个Windows 7用户,正在学习One Month课程中的Rails,尝试时遇到了一个错误。
或者
我所了解的是我遇到了ExecJS的问题。作为一个完全的初学者,我甚至不知道ExecJS是什么。
我阅读了这篇很棒的文章#12520456,虽然编辑runtimes.rb没有解决我的问题,但它让我更好地理解了情况,并且有了解决问题的意愿,而不是通过添加node.js来“忽略”它,特别是考虑到我以前能够运行我的服务器并且我想修复我基本上搞砸的东西。
我的意思是,我认为在编辑Windows环境的PATH时(我甚至不知道这是什么),我做错了什么,以修复我安装Heroku时遇到的问题。我记得我编辑了那部分内容,因为我在某个地方读到过它,虽然它似乎已经解决了我的Heroku问题,但我认为它弄乱了其余的东西。
非常感谢您的帮助和理解。
感谢deep,我安装了node.js,然后出现了TZInfo :: DataSourceNotFound错误,通过添加
gem 'tzinfo-data',platforms:[:mingw,:mswin]
和bundle update
得到了解决。非常感谢您!
首先,我是一个完全的Rails新手(让您知道我有多菜:我觉得自己只是在这里发布问题的专家),这是我在这里的第一个问题,请原谅我如果表达不够清楚。
因此,我是一个Windows 7用户,正在学习One Month课程中的Rails,尝试时遇到了一个错误。
$ rake routes
rake aborted!
ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://git
hub.com/sstephenson/execjs for a list of available runtimes.
c:/Users/Marc Montagne/Desktop/pinteresting/config/application.rb:7:in `<top (re
quired)>'
c:/Users/Marc Montagne/Desktop/pinteresting/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)
或者
$ rails server
c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/execjs-2.0.2/lib/execjs/run
times.rb:51:in `autodetect': Could not find a JavaScript runtime. See https://gi
thub.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUn
available)
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/execjs-2.0.2/l
ib/execjs.rb:5:in `<module:ExecJS>'
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/execjs-2.0.2/l
ib/execjs.rb:4:in `<top (required)>'
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/uglifier-2.4.0
/lib/uglifier.rb:3:in `require'
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/uglifier-2.4.0
/lib/uglifier.rb:3:in `<top (required)>'
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/
lib/bundler/runtime.rb:72:in `require'
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/
lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/
lib/bundler/runtime.rb:70:in `each'
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/
lib/bundler/runtime.rb:70:in `block in require'
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/
lib/bundler/runtime.rb:59:in `each'
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/
lib/bundler/runtime.rb:59:in `require'
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/
lib/bundler.rb:132:in `require'
from c:/Users/Marc Montagne/Desktop/pinteresting/config/application.rb:7
:in `<top (required)>'
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.1.4
/lib/rails/commands/commands_tasks.rb:79:in `require'
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.1.4
/lib/rails/commands/commands_tasks.rb:79:in `block in server'
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.1.4
/lib/rails/commands/commands_tasks.rb:76:in `tap'
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.1.4
/lib/rails/commands/commands_tasks.rb:76:in `server'
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.1.4
/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.1.4
/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
我所了解的是我遇到了ExecJS的问题。作为一个完全的初学者,我甚至不知道ExecJS是什么。
我阅读了这篇很棒的文章#12520456,虽然编辑runtimes.rb没有解决我的问题,但它让我更好地理解了情况,并且有了解决问题的意愿,而不是通过添加node.js来“忽略”它,特别是考虑到我以前能够运行我的服务器并且我想修复我基本上搞砸的东西。
我的意思是,我认为在编辑Windows环境的PATH时(我甚至不知道这是什么),我做错了什么,以修复我安装Heroku时遇到的问题。我记得我编辑了那部分内容,因为我在某个地方读到过它,虽然它似乎已经解决了我的Heroku问题,但我认为它弄乱了其余的东西。
非常感谢您的帮助和理解。