いつもお世話になっております。
タイトル通りなのですが、下記コマンドでプリコンパイル時にエラーが出ます。直前までこのコマンドで問題なくプリコンパイル出来ており、突然起こった現象です。
環境はamazon Linuxなのですが、sudo yum install yarnコマンドでyarnをインストールしようとしても
Loaded plugins: priorities, update-motd, upgrade-helper
No package yarn available.
Error: Nothing to do
上記エラーが出てインストールできません。
どういったことが考えられますでしょうか。
ご教示いただけますと幸いです。
Ruby
1コマンド 2bundle exec rake assets:precompile RAILS_ENV=production 3 4エラー 5Yarn executable was not detected in the system. 6Download Yarn at https://yarnpkg.com/en/docs/install 7rake aborted! 8Errno::EACCES: Permission denied @ utime_internal - /home/rails/sns/tmp/cache/assets/sprockets/v3.0/-h/-hIzEKyczQtWBsTxKa8goSPK00VKfU31GWLKaOc0VF4.cache 9/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/cache/file_store.rb:67:in `get' 10/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/cache.rb:208:in `get' 11/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/cache.rb:83:in `fetch' 12/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/base.rb:56:in `file_digest' 13/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/unloaded_asset.rb:104:in `dependency_history_key' 14/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:304:in `fetch_asset_from_dependency_cache' 15/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:44:in `load' 16/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:20:in `block in initialize' 17/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:47:in `load' 18/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/base.rb:66:in `find_asset' 19/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/base.rb:73:in `find_all_linked_assets' 20/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:142:in `block in find' 21/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths' 22/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:228:in `block in stat_tree' 23/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:212:in `block in stat_directory' 24/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:209:in `each' 25/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:209:in `stat_directory' 26/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:227:in `stat_tree' 27/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:105:in `each' 28/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:105:in `block in logical_paths' 29/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:104:in `each' 30/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:104:in `logical_paths' 31/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:140:in `find' 32/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:185:in `compile' 33/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define' 34/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/rake/sprocketstask.rb:147:in `with_logger' 35/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define' 36/home/rails/sns/vendor/bundle/ruby/2.3.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>' 37/usr/local/rbenv/versions/2.3.0/bin/bundle:23:in `load' 38/usr/local/rbenv/versions/2.3.0/bin/bundle:23:in `<main>' 39Tasks: TOP => assets:precompile 40(See full trace by running task with --trace)
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/05/18 02:30