質問編集履歴

2

補足

2022/01/19 20:40

投稿

pecchan
pecchan

スコア568

test CHANGED
@@ -1 +1 @@
1
- npm audit fixで「npm ERR! code ERESOLVE」を解消できずにいます
1
+ npm run devしたいが、Error: Cannot find module '@nuxtjs/svg'
test CHANGED
@@ -3,6 +3,7 @@
3
3
 
4
4
  ローカル環境にプロジェクトを持ってきて、
5
5
  npm ci
6
+ して
6
7
  npm run dev
7
8
  したいのですが、途中で躓いております。
8
9
 
@@ -207,6 +208,28 @@
207
208
  ╰────────────────────────────────────────────────────────────────────╯
208
209
  ```
209
210
 
211
+ Error: Cannot find module '@nuxtjs/svg'
212
+ とあるので、こちらのインストールを試みましたが失敗し、また「npm audit fix」を促され堂々巡りになってしまいます・・・。
213
+
214
+ ```ここに言語を入力
215
+ PS D:\xxx\frontend> npm install @nuxtjs/svg
216
+
217
+ up to date, audited 2130 packages in 4s
218
+
219
+ 146 packages are looking for funding
220
+ run `npm fund` for details
221
+
222
+ 91 vulnerabilities (85 moderate, 6 high)
223
+
224
+ To address issues that do not require attention, run:
225
+ npm audit fix
226
+
227
+ Some issues need review, and may require choosing
228
+ a different dependency.
229
+
230
+ Run `npm audit` for details.
231
+ ```
232
+
210
233
  どうすればエラー解消してrun devできるでしょうか?
211
234
  分かる方教えていただけると幸いです。
212
235
  宜しくお願い致します。

1

追加

2022/01/19 20:04

投稿

pecchan
pecchan

スコア568

test CHANGED
File without changes
test CHANGED
@@ -164,6 +164,49 @@
164
164
  PS D:\xxx\frontend>
165
165
  ```
166
166
 
167
-
167
+ 脆弱性あっても目的である
168
+ npm run dev
169
+ さえ実行できれば良いので、
170
+ npm run devすると以下のようにエラーになり実行できません。
171
+
172
+ ```ここに言語を入力
173
+ PS D:\xxx\frontend> npm run dev
174
+
175
+ > frontend@1.0.0 dev
176
+ > nuxt -p 8000
177
+
178
+
179
+ WARN Module @nuxtjs/svg not found. Please ensure @nuxtjs/svg is in dependencies and installed. 05:01:34
180
+
181
+
182
+ FATAL Cannot find module '@nuxtjs/svg' 05:01:34
183
+ Require stack:
184
+ - D:\xxx\frontend\node_modules\@nuxt\core\dist\core.js
185
+
186
+ Require stack:
187
+ - node_modules\@nuxt\core\dist\core.js
188
+ at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
189
+ at Function.resolve (node:internal/modules/cjs/helpers:108:19)
190
+ at m (node_modules\jiti\dist\jiti.js:1:52953)
191
+ at Resolver.f [as _require] (node_modules\jiti\dist\jiti.js:1:53766)
192
+ at Resolver.requireModule (node_modules\@nuxt\core\dist\core.js:381:29)
193
+ at ModuleContainer.addModule (node_modules\@nuxt\core\dist\core.js:182:38)
194
+ at node_modules\@nuxt\utils\dist\utils.js:639:43
195
+ at async ModuleContainer.ready (node_modules\@nuxt\core\dist\core.js:55:5)
196
+ at async Nuxt._init (node_modules\@nuxt\core\dist\core.js:478:5)
197
+
198
+
199
+ ╭────────────────────────────────────────────────────────────────────╮
200
+ │ │
201
+ │ ✖ Nuxt Fatal Error │
202
+ │ │
203
+ │ Error: Cannot find module '@nuxtjs/svg' │
204
+ │ Require stack: │
205
+ │ - D:\xxx\frontend\node_modules\@nuxt\core\dist\core.js │
206
+ │ │
207
+ ╰────────────────────────────────────────────────────────────────────╯
208
+ ```
209
+
210
+ どうすればエラー解消してrun devできるでしょうか?
168
211
  分かる方教えていただけると幸いです。
169
212
  宜しくお願い致します。