質問編集履歴

2

エラーコードは文字数の兼ね合いから全部は入れられていませんが追記してみました。

2020/02/25 13:34

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -70,7 +70,75 @@
70
70
 
71
71
 
72
72
 
73
- 文字制限で入れられないため、別の質問に乗せます。URL記載予定
73
+ 文字制限で入れられないため エラーっぽいところを乗せます。
74
+
75
+ => Booting Puma
76
+
77
+ => Rails 6.0.2.1 application starting in development
78
+
79
+ => Run `rails server --help` for more startup options
80
+
81
+ Exiting
82
+
83
+ Traceback (most recent call last):
84
+
85
+ 49: from bin/rails:4:in `<main>'
86
+
87
+ 48: from bin/rails:4:in `require'
88
+
89
+ 47: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/commands.rb:18:in `<top (required)>'
90
+
91
+ 46: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/command.rb:46:in `invoke'
92
+
93
+ 45: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/command/base.rb:69:in `perform'
94
+
95
+ 44: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
96
+
97
+ 43: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
98
+
99
+ 42: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
100
+
101
+ 41: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/commands/server/server_command.rb:138:in `perform'
102
+
103
+ 40: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/commands/server/server_command.rb:138:in `tap'
104
+
105
+ ~~~~~~~~中略
106
+
107
+
108
+
109
+ 15: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
110
+
111
+ 14: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/initializable.rb:61:in `block in run_initializers'
112
+
113
+ 13: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/initializable.rb:32:in `run'
114
+
115
+ 12: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/initializable.rb:32:in `instance_exec'
116
+
117
+ 11: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/railtie.rb:84:in `block in <class:Engine>'
118
+
119
+ 10: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker.rb:35:in `bootstrap'
120
+
121
+ 9: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/commands.rb:25:in `bootstrap'
122
+
123
+ 8: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/manifest.rb:18:in `refresh'
124
+
125
+ 7: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/manifest.rb:83:in `load'
126
+
127
+ 6: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/configuration.rb:51:in `public_manifest_path'
128
+
129
+ 5: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/configuration.rb:47:in `public_output_path'
130
+
131
+ 4: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/configuration.rb:43:in `public_path'
132
+
133
+ 3: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/configuration.rb:84:in `fetch'
134
+
135
+ 2: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/configuration.rb:88:in `data'
136
+
137
+ 1: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/configuration.rb:91:in `load'
138
+
139
+ C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/configuration.rb:95:in `rescue in load': Webpacker configuration file not found C:/Users/hinak/niko/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory @ rb_sysopen - C:/Users/hinak/niko/config/webpacker.yml (RuntimeError)
140
+
141
+
74
142
 
75
143
  ```
76
144
 

1

行ったことを追記しました。webpackerを入れたいのですが、入れられていません。sqliteも新しいのに出来ていませんが、追記事項があるため新しく更新します。

2020/02/25 13:34

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -26,31 +26,51 @@
26
26
 
27
27
 
28
28
 
29
+
30
+
31
+
32
+
33
+ rubyのdevkitを入れてrails new app と作ってみると
34
+
35
+ 前にインストールされていたモノよりも多く作られていました。
36
+
37
+ gemfileなどです。
38
+
39
+
40
+
41
+ またGitも入れてみました。どうやらreilsサーバーは動いているみたいですが、下記のように
42
+
43
+ ランタイムエラー?になっており、起動できません。
44
+
45
+
46
+
47
+ webpackerというものが必要?と出ているのでインストールしようとするとyarnを先に入れないといけない
48
+
49
+ ということで、yarnを入れてみましたが
50
+
51
+ Successfully installed yarn-0.1.1
52
+
53
+ Parsing documentation for yarn-0.1.1
54
+
55
+ Done installing documentation for yarn after 0 seconds
56
+
57
+ 1 gem installed
58
+
59
+ 入った?と思いますが、これでもWevpackerがインストールできません。
60
+
61
+
62
+
63
+ SQliteの新しいモノのインストール方法を調べてみたのですが、新しいバージョンだと
64
+
65
+ 入れ方が違うとかなんとかで、現在も探しています。
66
+
67
+
68
+
29
69
  ### 該当のソースコード
30
70
 
31
71
 
32
72
 
33
- ```ruby on rails
34
-
35
- C:\Users\hinak\app>rails server
36
-
37
- Usage:
38
-
39
- rails new APP_PATH [options]
40
-
41
-
42
-
43
- Options:
44
-
45
- [--skip-namespace], [--no-skip-namespace] # Skip namespace (affects only isolated applications)
46
-
47
- -r, [--ruby=PATH] # Path to the Ruby binary of your choice
48
-
49
- # Default: C:/Ruby26-x64/bin/ruby.exe
50
-
51
- -m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL)
52
-
53
- -d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/postgresql/sqlite3/oracle/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc) ~~~
73
+ 文字制限で入れられないため、別の質問に乗せます。URL記載予定
54
74
 
55
75
  ```
56
76
 
@@ -60,47 +80,21 @@
60
80
 
61
81
 
62
82
 
63
- ググってみる階層が違う、というモノばかりで、結局の所どうすれば
83
+ gitの追加。rubyのdevkitをrubyフォルダに移したこ
64
84
 
85
+ yarnを入れてみたことyarn-0.1.1。
86
+
87
+
88
+
89
+ 以上です。正直かなり混乱しているので、新しくHDDを購入して1からしてみようかと
90
+
65
- いいかわからないため質問しした
91
+ 始めています…
66
92
 
67
93
 
68
94
 
69
95
  ### 補足情報(FW/ツールのバージョンなど)
70
96
 
71
-
72
-
73
- cmdにてrails new app と新しく作ったばかりです。
74
-
75
- その際も動画投稿されている方のと自分のPCのモノではできている
76
-
77
- データが少ないような感じです。
78
-
79
- rails new appと作っても
80
-
81
- create
82
-
83
- create README.md
84
-
85
- create Rakefile
86
-
87
- create .ruby-version
88
-
89
- create config.ru
90
-
91
- create .gitignore
92
-
93
- create Gemfile
94
-
95
- run git init from "."
96
-
97
- これしか出てきません。正常なのかどうなのか区別も付かない初心者で申し訳ないのですがお願いします。
98
-
99
- 下記に環境を書いております
97
+ yarn-0.1.1
100
-
101
-
102
-
103
-
104
98
 
105
99
  rubyのバージョンは2.6.5
106
100