質問編集履歴

2

ソース

2020/05/02 15:37

投稿

gitaro-p
gitaro-p

スコア12

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,16 @@
1
+ Nuxt.jsでプロジェクトを作り、npm install @nuxtjs/markdownit --saveとnpm install nuxt-fontawesome --saveで
2
+
3
+ **markdownit**と**nuxt-fontawesome**をインストールし、アイコンを使えるように以下でアイコンをインストールしました。
4
+
5
+ **$ npm install @fortawesome/free-solid-svg-icons --save**
6
+
7
+ **$ npm install @fortawesome/free-brands-svg-icons --save**
8
+
9
+
10
+
1
- Nuxt.jsでプロジェクト作り、以下のエラーになりました。
11
+ その後、Nuxt.config.jsファイル編集し**npm run dev**で以下のエラーになりました。
12
+
13
+ 何か考えられることを含め、他に追記することが必要な場合も教えて下さい。
2
14
 
3
15
 
4
16
 

1

ファイルの編集

2020/05/02 15:37

投稿

gitaro-p
gitaro-p

スコア12

test CHANGED
@@ -1 +1 @@
1
- Nuxt/$npm run devエラー
1
+ Nuxt.jsのNuxt Fatal Error
test CHANGED
@@ -66,4 +66,258 @@
66
66
 
67
67
 
68
68
 
69
+ ```
70
+
69
- こちらどういうエラーか教えて下さい
71
+ 以下nuxt.config.jsです
72
+
73
+ ```
74
+
75
+
76
+
77
+ // src/nuxt.config.js
78
+
79
+
80
+
81
+ export default {
82
+
83
+ mode: 'universal',
84
+
85
+ /*
86
+
87
+ ** Headers of the page
88
+
89
+ */
90
+
91
+ head: {
92
+
93
+ title: process.env.npm_package_name || '',
94
+
95
+ meta: [
96
+
97
+ { charset: 'utf-8' },
98
+
99
+ { name: 'viewport', content: 'width=device-width, initial-scale=1' },
100
+
101
+ { hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
102
+
103
+ ],
104
+
105
+ link: [
106
+
107
+ { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
108
+
109
+ ]
110
+
111
+ },
112
+
113
+ /*
114
+
115
+ ** Customize the progress-bar color
116
+
117
+ */
118
+
119
+ loading: { color: '#fff' },
120
+
121
+ /*
122
+
123
+ ** Global CSS
124
+
125
+ */
126
+
127
+ css: [
128
+
129
+
130
+
131
+ '@fortawesome/fontawesome-svg-core/styles.css'
132
+
133
+
134
+
135
+ ],
136
+
137
+ /*
138
+
139
+ ** Plugins to load before mounting the App
140
+
141
+ */
142
+
143
+ plugins: [
144
+
145
+
146
+
147
+ { src: '~plugins/font-awesome', ssr: false }
148
+
149
+
150
+
151
+ ],
152
+
153
+ /*
154
+
155
+ ** Nuxt.js dev-modules
156
+
157
+ */
158
+
159
+ devModules: [
160
+
161
+ // Doc: https://github.com/nuxt-community/nuxt-tailwindcss
162
+
163
+ '@nuxtjs/tailwindcss',
164
+
165
+ ],
166
+
167
+ /*
168
+
169
+ ** Nuxt.js modules
170
+
171
+ */
172
+
173
+ modules: [
174
+
175
+ '@nuxtjs/pwa',
176
+
177
+   '@nuxtjs/markdownit',
178
+
179
+ 'nuxt-fontawesome'
180
+
181
+
182
+
183
+
184
+
185
+ ],
186
+
187
+
188
+
189
+
190
+
191
+ markdownit: {
192
+
193
+ html: true,
194
+
195
+ injected: true,
196
+
197
+ linkify: true,
198
+
199
+ breaks: false
200
+
201
+ },
202
+
203
+
204
+
205
+ fontawesome: {
206
+
207
+ component: 'fa'
208
+
209
+ },
210
+
211
+
212
+
213
+
214
+
215
+ /*
216
+
217
+ ** Build configuration
218
+
219
+ */
220
+
221
+ build: {
222
+
223
+ /*
224
+
225
+ ** You can extend webpack config here
226
+
227
+ */
228
+
229
+ extend (config, ctx) {
230
+
231
+ }
232
+
233
+ }
234
+
235
+ }
236
+
237
+ ```
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+ ### 試したこと
252
+
253
+ **$brew doctor**
254
+
255
+
256
+
257
+ ```
258
+
259
+ $ brew doctor
260
+
261
+ Please note that these warnings are just used to help the Homebrew maintainers
262
+
263
+ with debugging if you file an issue. If everything you use Homebrew for is
264
+
265
+ working fine: please don't worry or file an issue; just ignore this. Thanks!
266
+
267
+
268
+
269
+ Warning: A newer Command Line Tools release is available.
270
+
271
+ Update them from Software Update in System Preferences or run:
272
+
273
+ softwareupdate --all --install --force
274
+
275
+
276
+
277
+ If that doesn't show you an update run:
278
+
279
+ sudo rm -rf /Library/Developer/CommandLineTools
280
+
281
+ sudo xcode-select --install
282
+
283
+
284
+
285
+ Alternatively, manually download them from:
286
+
287
+ https://developer.apple.com/download/more/.
288
+
289
+
290
+
291
+
292
+
293
+ Warning: You have unlinked kegs in your Cellar.
294
+
295
+ Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
296
+
297
+ those kegs to fail to run properly once built. Run `brew link` on these:
298
+
299
+ gettext
300
+
301
+
302
+
303
+ Warning: Your Xcode (11.2) is outdated.
304
+
305
+ Please update to Xcode 11.4.1 (or delete it).
306
+
307
+ Xcode can be updated from the App Store.
308
+
309
+
310
+
311
+
312
+
313
+ Warning: Your XQuartz (2.7.8) is outdated.
314
+
315
+ Please install XQuartz 2.7.11 (or delete the current version).
316
+
317
+ XQuartz can be updated using Homebrew Cask by running:
318
+
319
+ brew cask reinstall xquartz
320
+
321
+
322
+
323
+ ```