2013-02-27 71 views
2

我試圖運行Rails應用程序coffescript代碼(Cygwin的,Win7的下)運行coffescript和我有以下錯誤日誌:不能在Cygwin

ActionView::Template::Error (
module.js:340 
    throw err; 
     ^
Error: Cannot find module 'C:\tmp\execjs20130227-4044-6cws3p.js' 
    at Function.Module._resolveFilename (module.js:338:15) 
    at Function.Module._load (module.js:280:25) 
    at Module.runMain (module.js:492:10) 
    at process.startup.processNextTick.process._tickCallback (node.js:244:9) 

    (in /cygdrive/c/Users/IBM_ADMIN/Programming/Rails/AdmApp/app/assets/javascripts/aplicacao.js.coffee)): 
    3: <head> 
    4: <title>AdmApp</title> 
    5: <%= stylesheet_link_tag "application", :media => "all" %> 
    6: <%= javascript_include_tag "application" %> 
    7: <%= csrf_meta_tag %> 
    8: </head> 
    9: <body> 
    app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb__1024687483__1068178198' 


    Rendered /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1) 
    Rendered /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_onse.erb (1.0ms) 
    Rendered /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/template_errob within rescues/layout (81.0ms) 

我coffescript是aplicacao.js。咖啡:

jQuery -> 
    $('#states').sortable(
    axis: 'y' 
    update: -> 
     alert('updated!') 
); 

有什麼想法嗎? Tks

回答

1

看起來像是一組混合路徑。我看到兩種DOS風格C:\tmp\execjs20130227-4044-6cws3p.js和cygwin(unix)風格:/cygdrive/c/Users/IBM_ADMIN/Programming/Rails/...

看起來應用程序運行在Cygwin中,所以我會將所有路徑更改爲unix風格並重試。