前提・実現したいこと
ここに質問の内容を詳しく書いてください。
(例)PHP(CakePHP)で●●なシステムを作っています。
■■な機能を実装中に以下のエラーメッセージが発生しました。
発生している問題・エラーメッセージ
rails new のコマンドで一つの仮想環境に二個目のアプリを作成を試みたがPermission denied @ dir_s_mkdirというエラーメッセージが表示される
エラーメッセージ
raceback (most recent call last):
33: from /home/vagrant/.rbenv/versions/2.5.7/bin/rails:23:in <main>' 32: from /home/vagrant/.rbenv/versions/2.5.7/bin/rails:23:in
load'
31: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/railties-5.2.4.3/exe/rails:10:in <top (required)>' 30: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in
require'
29: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in require' 28: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/railties-5.2.4.3/lib/rails/cli.rb:18:in
<top (required)>'
27: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/railties-5.2.4.3/lib/rails/command.rb:46:in invoke' 26: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/railties-5.2.4.3/lib/rails/command/base.rb:69:in
perform'
25: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor.rb:392:in dispatch' 24: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in
invoke_command'
23: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/command.rb:27:in run' 22: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/railties-5.2.4.3/lib/rails/commands/application/application_command.rb:26:in
perform'
21: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/base.rb:485:in start' 20: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/group.rb:232:in
dispatch'
19: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in invoke_all' 18: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in
map'
17: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in each' 16: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in
block in invoke_all'
15: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in invoke_command' 14: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/command.rb:27:in
run'
13: from (eval):1:in create_root' 12: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/railties-5.2.4.3/lib/rails/generators/app_base.rb:165:in
create_root'
11: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/actions/empty_directory.rb:14:in empty_directory' 10: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/actions.rb:93:in
action'
9: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/actions/empty_directory.rb:50:in invoke!' 8: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/actions/empty_directory.rb:117:in
invoke_with_conflict_check'
7: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/actions/empty_directory.rb:52:in block in invoke!' 6: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/2.5.0/fileutils.rb:193:in
mkdir_p'
5: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/2.5.0/fileutils.rb:193:in each' 4: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/2.5.0/fileutils.rb:208:in
block in mkdir_p'
3: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/2.5.0/fileutils.rb:208:in reverse_each' 2: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/2.5.0/fileutils.rb:210:in
block (2 levels) in mkdir_p'
1: from /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/2.5.0/fileutils.rb:232:in fu_mkdir' /home/vagrant/.rbenv/versions/2.5.7/lib/ruby/2.5.0/fileutils.rb:232:in
mkdir': Permission denied @ dir_s_mkdir - /home/vagrant/work/CARAVAN (Errno::EACCES)
### 該当のソースコード rails new CRAVAN ```ここに言語名を入力 ruby on rails ソースコード
試したこと
vagrant stausで状態を確認したがちゃんと仮想環境に入れていた。
このエラーは初めてなので試したことはほぼない
ここに問題に対して試したことを記載してください。
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。