English 中文(简体)
rake 资产: 前拼写失败, 无法调用方法写入未定义错误
原标题:rake assets:precompile fails with Cannot call method write of undefined error

我一直在安装“http://spreecommerce.com/'rel=“nofollow”>spree ,作为安装的一部分,运行了以下命令:

rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets

我就会得到这个错误:

rake aborted!
TypeError: Cannot call method  write  of undefined
at /tmp/execjs20120526-15139-1ixqp7s.js:6290:20
at /tmp/execjs20120526-15139-1ixqp7s.js:6304:16
at /tmp/execjs20120526-15139-1ixqp7s.js:1:92
at Object.<anonymous> (/tmp/execjs20120526-15139-1ixqp7s.js:1:109)
at Module._loadContent (node.js:667:21)
at node.js:695:20
at node.js:304:23
at node.js:756:9

(载于//pp/assets/javascripts/admin/ all.js)

这里的堆放追踪 :

/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/execjs-
1.4.0/lib/execjs/external_runtime.rb:142:in `exec_runtime 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/execjs-1.4.0/lib/execjs/external_runtime.rb:28:in `block in exec 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/execjs-1.4.0/lib/execjs/external_runtime.rb:41:in `compile_to_tempfile 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/execjs-1.4.0/lib/execjs/external_runtime.rb:27:in `exec 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/uglifier-1.2.4/lib/uglifier.rb:101:in `compile 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/actionpack-3.2.3/lib/sprockets/compressors.rb:74:in `compress 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/processing.rb:265:in `block in js_compressor= 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/processor.rb:29:in `call 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/processor.rb:29:in `evaluate 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/tilt-1.3.3/lib/tilt/template.rb:76:in `render 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/context.rb:177:in `block in evaluate 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/context.rb:174:in `each 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/context.rb:174:in `evaluate 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/bundled_asset.rb:26:in `initialize 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/base.rb:244:in `new 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/base.rb:244:in `build_asset 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/index.rb:89:in `block in build_asset 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/caching.rb:19:in `cache_asset 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/index.rb:88:in `build_asset 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/base.rb:163:in `find_asset 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/index.rb:56:in `find_asset 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/actionpack-3.2.3/lib/sprockets/static_compiler.rb:20:in `block in compile 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/base.rb:212:in `block in each_logical_path 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/base.rb:200:in `block (2 levels) in each_file 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/base.rb:190:in `each 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/base.rb:190:in `each_entry 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/base.rb:198:in `block in each_file 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/base.rb:197:in `each 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/base.rb:197:in `each_file 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/sprockets-2.1.3/lib/sprockets/base.rb:210:in `each_logical_path 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/actionpack-3.2.3/lib/sprockets/static_compiler.rb:18:in `compile 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/actionpack-3.2.3/lib/sprockets/assets.rake:56:in `internal_precompile 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/actionpack-3.2.3/lib/sprockets/assets.rake:70:in `block (3 levels) in <top (required)> 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain 
/usr/local/rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke 
/usr/local/rvm/gems/ruby-1.9.3-p125@happyBirthday/gems/actionpack-3.2.3/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)> 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain 
/usr/local/rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)> 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/bin/rake:19:in `load 
/usr/local/rvm/gems/ruby-1.9.3-p125@global/bin/rake:19:in `<main> 
Tasks: TOP => assets:precompile:primary

我查了一下所有的文件 档案里有些评论了一些东西 全部都是新的装置...

铁路(3.2.3),红宝石 1.9.3p125

知道怎么回事吗 谢谢你的帮助

问题回答

是因为我在Cs. doh上贴上一些无效的媒体询问!





相关问题
rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Auth-code with A-Za-z0-9 to use in an URL parameter

As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

activerecord has_many :through find with one sql call

I have a these 3 models: class User < ActiveRecord::Base has_many :permissions, :dependent => :destroy has_many :roles, :through => :permissions end class Permission < ActiveRecord::...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...

热门标签