我剛通過rails安裝程序在我的windows PC上安裝了rails - 而且我不知道有關rails或任何其他內容......在創建我的第一個應用程序之後軌道新XXX),並創建了第一個控制器和視圖,我跑了服務器,我看到的第一件事情是一個錯誤:Rails的第一個應用程序錯誤 - Errno :: ENOENT
Errno::ENOENT
Showing C:/Sites/XXX/XXX/app/views/layouts/application.html.erb where line #5 raised:
No such file or directory @ unlink_internal - C:/Users/XXX/AppData/Local/Temp/execjs20150402-8140-cy5cjejson
(in C:/Sites/XXX/XXX/app/assets/stylesheets/application.css.sass)
再次
,我沒碰過我的軌道不斷,並沒有寫任何代碼但仍然有這個錯誤...我搜索了幾個小時在線的答案,但沒有人幫助我或解決了我的問題...我嘗試安裝Node.js,exejs,但沒有任何幫助。
注: 我注意到,如果我在應用程序模板中刪除
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
,網站正常運行(但我不想刪除它 - 我需要它)
我怎麼解決這個問題?
編輯:我的寶石文件:
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.1'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
不是它顯示我這個錯誤:'顯示C:/Sites/temp/app/views/layouts/application.html.erb在哪裏行#6引發: 沒有這樣的文件或目錄@ unlink_internal - C :/ Users/XXX/AppData/Local/Temp/execjs20150402-7900-l8y4j5json (位於C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/turbolinks-2.5.3/lib/assets /javascripts/turbolinks.js.coffee)' – user3926081 2015-04-02 19:06:18
發佈你的gemfile。 – 2015-04-02 19:13:26
增加了它(在你建議更改之前) – user3926081 2015-04-02 19:15:25