質問編集履歴
4
errorを追加した
test
CHANGED
File without changes
|
test
CHANGED
@@ -204,4 +204,164 @@
|
|
204
204
|
|
205
205
|
Dockerfileにたいして、```RUN npm install```を```RUN yarn install```に変更。
|
206
206
|
|
207
|
+
```
|
208
|
+
|
209
|
+
npm notice
|
210
|
+
|
211
|
+
npm notice New patch version of npm available! 7.5.1 -> 7.5.2
|
212
|
+
|
213
|
+
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v7.5.2>
|
214
|
+
|
215
|
+
npm notice Run `npm install -g npm@7.5.2` to update!
|
216
|
+
|
217
|
+
npm notice
|
218
|
+
|
219
|
+
npm ERR! code ERESOLVE
|
220
|
+
|
221
|
+
npm ERR! ERESOLVE unable to resolve dependency tree
|
222
|
+
|
223
|
+
npm ERR!
|
224
|
+
|
225
|
+
npm ERR! Found: react@17.0.1
|
226
|
+
|
227
|
+
npm ERR! node_modules/react
|
228
|
+
|
229
|
+
npm ERR! react@"^17.0.1" from the root project
|
230
|
+
|
231
|
+
npm ERR! peer react@"*" from @testing-library/react@11.2.5
|
232
|
+
|
233
|
+
npm ERR! node_modules/@testing-library/react
|
234
|
+
|
235
|
+
npm ERR! @testing-library/react@"^11.1.0" from the root project
|
236
|
+
|
237
|
+
npm ERR! 3 more (react-dom, react-scripts, reactstrap)
|
238
|
+
|
239
|
+
npm ERR!
|
240
|
+
|
241
|
+
npm ERR! Could not resolve dependency:
|
242
|
+
|
243
|
+
npm ERR! peer react@"0.14.x || ^15.0.0 || ^16.0.0" from react-popper@1.3.7
|
244
|
+
|
245
|
+
npm ERR! node_modules/reactstrap/node_modules/react-popper
|
246
|
+
|
247
|
+
npm ERR! react-popper@"^1.3.6" from reactstrap@8.9.0
|
248
|
+
|
249
|
+
npm ERR! node_modules/reactstrap
|
250
|
+
|
251
|
+
npm ERR! reactstrap@"^8.9.0" from the root project
|
252
|
+
|
253
|
+
npm ERR!
|
254
|
+
|
255
|
+
npm ERR! Fix the upstream dependency conflict, or retry
|
256
|
+
|
257
|
+
npm ERR! this command with --force, or --legacy-peer-deps
|
258
|
+
|
259
|
+
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
|
260
|
+
|
261
|
+
npm ERR!
|
262
|
+
|
263
|
+
npm ERR! See /root/.npm/eresolve-report.txt for a full report.
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
npm ERR! A complete log of this run can be found in:
|
268
|
+
|
269
|
+
npm ERR! /root/.npm/_logs/2021-02-04T08_40_33_006Z-debug.log
|
270
|
+
|
271
|
+
```
|
272
|
+
|
273
|
+
|
274
|
+
|
207
275
|
node_moudelsをマウントして、package.jsonのreact_scriptsのpathを変更した
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
```
|
280
|
+
|
281
|
+
frontend_1 |
|
282
|
+
|
283
|
+
frontend_1 | removed 317 packages, and audited 1835 packages in 3s
|
284
|
+
|
285
|
+
frontend_1 |
|
286
|
+
|
287
|
+
frontend_1 | found 0 vulnerabilities
|
288
|
+
|
289
|
+
frontend_1 | npm notice
|
290
|
+
|
291
|
+
frontend_1 | npm notice New patch version of npm available! 7.5.1 -> 7.5.2
|
292
|
+
|
293
|
+
frontend_1 | npm notice Changelog: <https://github.com/npm/cli/releases/tag/v7.5.2>
|
294
|
+
|
295
|
+
frontend_1 | npm notice Run `npm install -g npm@7.5.2` to update!
|
296
|
+
|
297
|
+
frontend_1 | npm notice
|
298
|
+
|
299
|
+
frontend_1 | yarn run v1.22.5
|
300
|
+
|
301
|
+
frontend_1 | $ react-scripts start
|
302
|
+
|
303
|
+
frontend_1 | node:internal/modules/cjs/loader:928
|
304
|
+
|
305
|
+
frontend_1 | throw err;
|
306
|
+
|
307
|
+
frontend_1 | ^
|
308
|
+
|
309
|
+
frontend_1 |
|
310
|
+
|
311
|
+
frontend_1 | Error: Cannot find module 'rollup-plugin-babel'
|
312
|
+
|
313
|
+
frontend_1 | Require stack:
|
314
|
+
|
315
|
+
frontend_1 | - /frontend/node_modules/workbox-build/build/lib/bundle.js
|
316
|
+
|
317
|
+
frontend_1 | - /frontend/node_modules/workbox-webpack-plugin/build/generate-sw.js
|
318
|
+
|
319
|
+
frontend_1 | - /frontend/node_modules/workbox-webpack-plugin/build/index.js
|
320
|
+
|
321
|
+
frontend_1 | - /frontend/node_modules/react-scripts/config/webpack.config.js
|
322
|
+
|
323
|
+
frontend_1 | - /frontend/node_modules/react-scripts/scripts/start.js
|
324
|
+
|
325
|
+
frontend_1 | at Function.Module._resolveFilename (node:internal/modules/cjs/loader:925:15)
|
326
|
+
|
327
|
+
frontend_1 | at Function.Module._load (node:internal/modules/cjs/loader:769:27)
|
328
|
+
|
329
|
+
frontend_1 | at Module.require (node:internal/modules/cjs/loader:997:19)
|
330
|
+
|
331
|
+
frontend_1 | at require (node:internal/modules/cjs/helpers:92:18)
|
332
|
+
|
333
|
+
frontend_1 | at Object.<anonymous> (/frontend/node_modules/workbox-build/build/lib/bundle.js:22:15)
|
334
|
+
|
335
|
+
frontend_1 | at Module._compile (node:internal/modules/cjs/loader:1108:14)
|
336
|
+
|
337
|
+
frontend_1 | at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
|
338
|
+
|
339
|
+
frontend_1 | at Module.load (node:internal/modules/cjs/loader:973:32)
|
340
|
+
|
341
|
+
frontend_1 | at Function.Module._load (node:internal/modules/cjs/loader:813:14)
|
342
|
+
|
343
|
+
frontend_1 | at Module.require (node:internal/modules/cjs/loader:997:19) {
|
344
|
+
|
345
|
+
frontend_1 | code: 'MODULE_NOT_FOUND',
|
346
|
+
|
347
|
+
frontend_1 | requireStack: [
|
348
|
+
|
349
|
+
frontend_1 | '/frontend/node_modules/workbox-build/build/lib/bundle.js',
|
350
|
+
|
351
|
+
frontend_1 | '/frontend/node_modules/workbox-webpack-plugin/build/generate-sw.js',
|
352
|
+
|
353
|
+
frontend_1 | '/frontend/node_modules/workbox-webpack-plugin/build/index.js',
|
354
|
+
|
355
|
+
frontend_1 | '/frontend/node_modules/react-scripts/config/webpack.config.js',
|
356
|
+
|
357
|
+
frontend_1 | '/frontend/node_modules/react-scripts/scripts/start.js'
|
358
|
+
|
359
|
+
frontend_1 | ]
|
360
|
+
|
361
|
+
frontend_1 | }
|
362
|
+
|
363
|
+
frontend_1 | error Command failed with exit code 1.
|
364
|
+
|
365
|
+
frontend_1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
|
366
|
+
|
367
|
+
```
|
3
タイトルをわかりやすくした
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
docker-compose
|
1
|
+
docker-compose,Reactにおける/bin/sh: 1: react-scripts: not foundの解決方法について
|
test
CHANGED
File without changes
|
2
追加の情報を記載した
test
CHANGED
File without changes
|
test
CHANGED
@@ -203,3 +203,5 @@
|
|
203
203
|
# ためしたこと、
|
204
204
|
|
205
205
|
Dockerfileにたいして、```RUN npm install```を```RUN yarn install```に変更。
|
206
|
+
|
207
|
+
node_moudelsをマウントして、package.jsonのreact_scriptsのpathを変更した
|
1
typoを修正しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -94,7 +94,7 @@
|
|
94
94
|
|
95
95
|
|
96
96
|
|
97
|
-
COPY package.json /
|
97
|
+
COPY package.json /frontend
|
98
98
|
|
99
99
|
RUN yarn install
|
100
100
|
|