質問するログイン新規登録

質問編集履歴

4

エラー内容修正

2020/07/28 08:06

投稿

study_111
study_111

スコア82

title CHANGED
File without changes
body CHANGED
@@ -2,8 +2,6 @@
2
2
  エラー内容は下記になります。
3
3
 
4
4
  ```
5
- root@4c1bd3b7e7b2:/work/backend# npm run dev
6
-
7
5
  > @ dev /work/backend
8
6
  > npm run development
9
7
 
@@ -36,7 +34,69 @@
36
34
 
37
35
  npm ERR! A complete log of this run can be found in:
38
36
  npm ERR! /root/.npm/_logs/2020-07-28T07_56_05_312Z-debug.log
39
- root@4c1bd3b7e7b2:/work/backend#
37
+ root@4c1bd3b7e7b2:/work/backend# npm install
38
+ npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
39
+ npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
40
+ npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
41
+ npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
42
+ npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
43
+ npm notice created a lockfile as package-lock.json. You should commit this file.
44
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):
45
+ npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
46
+ npm WARN notsup Unsupported engine for watchpack-chokidar2@2.0.0: wanted: {"node":"<8.10.0"} (current: {"node":"12.18.3","npm":"6.14.7"})
47
+ npm WARN notsup Not compatible with your version of node/npm: watchpack-chokidar2@2.0.0
48
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents):
49
+ npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
50
+
51
+ added 1040 packages from 498 contributors and audited 1043 packages in 112.735s
52
+
53
+ 33 packages are looking for funding
54
+ run `npm fund` for details
55
+
56
+ found 1 low severity vulnerability
57
+ run `npm audit fix` to fix them, or `npm audit` for details
58
+ root@4c1bd3b7e7b2:/work/backend# npm audit fix
59
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
60
+ npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
61
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/watchpack/node_modules/fsevents):
62
+ npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
63
+
64
+ up to date in 13.781s
65
+
66
+ 33 packages are looking for funding
67
+ run `npm fund` for details
68
+
69
+ fixed 0 of 1 vulnerability in 1043 scanned packages
70
+ 1 vulnerability required manual review and could not be updated
71
+ root@4c1bd3b7e7b2:/work/backend# npm run dev
72
+
73
+ > @ dev /work/backend
74
+ > npm run development
75
+
76
+
77
+ > @ development /work/backend
78
+ > cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
79
+
80
+ Additional dependencies must be installed. This will only take a moment.
81
+
82
+ Running: npm install vue-template-compiler --save-dev --production=false
83
+
84
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
85
+ npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
86
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/watchpack/node_modules/fsevents):
87
+ npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
88
+
89
+ Okay, done. The following packages have been installed and saved to your package.json dependencies list:
90
+
91
+ - vue-template-compiler
92
+
93
+ 98% after emitting SizeLimitsPlugin
94
+
95
+ DONE Compiled successfully in 38154ms 8:03:40 AM
96
+
97
+ Asset Size Chunks Chunk Names
98
+ /css/app.css 178 KiB /js/app [emitted] /js/app
99
+ /js/app.js 1.07 MiB /js/app [emitted] /js/app
40
100
  ```
41
101
  当初表示されていたエラーとは違ったのですが、エラー内容で調べていた際に、色々試したのですが、表示されるエラーが毎回違い収集がつかなくなってしまいました。
42
102
  まず、どこから手をつけ直して行けば良いか分からないため、アドバイスを貰えましたら幸いです。

3

エラー内容修正

2020/07/28 08:06

投稿

study_111
study_111

スコア82

title CHANGED
File without changes
body CHANGED
@@ -2,54 +2,41 @@
2
2
  エラー内容は下記になります。
3
3
 
4
4
  ```
5
- > root@1.0.0 dev /root
6
- > webpack --mode development
5
+ root@4c1bd3b7e7b2:/work/backend# npm run dev
7
6
 
7
+ > @ dev /work/backend
8
+ > npm run development
8
9
 
9
- Insufficient number of arguments or no entry found.
10
- Alternatively, run 'webpack(-cli) --help' for usage info.
11
10
 
12
- Hash: 6bd72c59c4f7f50efe2b
13
- Version: webpack 4.44.0
14
- Time: 77ms
15
- Built at: 07/28/2020 6:40:08 AM
11
+ > @ development /work/backend
12
+ > cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
16
13
 
17
- ERROR in Entry module not found: Error: Can't resolve './src' in '/root'
14
+ sh: 1: cross-env: not found
18
15
  npm ERR! code ELIFECYCLE
16
+ npm ERR! syscall spawn
17
+ npm ERR! file sh
19
- npm ERR! errno 2
18
+ npm ERR! errno ENOENT
20
- npm ERR! root@1.0.0 dev: `webpack --mode development`
19
+ npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
21
- npm ERR! Exit status 2
20
+ npm ERR! spawn ENOENT
22
21
  npm ERR!
23
- npm ERR! Failed at the root@1.0.0 dev script.
22
+ npm ERR! Failed at the @ development script.
24
23
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
24
+ npm WARN Local package.json exists, but node_modules missing, did you mean to install?
25
25
 
26
26
  npm ERR! A complete log of this run can be found in:
27
- npm ERR! /root/.npm/_logs/2020-07-28T06_40_08_178Z-debug.log
27
+ npm ERR! /root/.npm/_logs/2020-07-28T07_56_05_284Z-debug.log
28
- root@4c1bd3b7e7b2:~# npm run dev
29
-
30
- > root@1.0.0 dev /root
31
- > webpack --mode development
32
-
33
-
34
- Insufficient number of arguments or no entry found.
35
- Alternatively, run 'webpack(-cli) --help' for usage info.
36
-
37
- Hash: 6bd72c59c4f7f50efe2b
38
- Version: webpack 4.44.0
39
- Time: 89ms
40
- Built at: 07/28/2020 7:26:29 AM
41
-
42
- ERROR in Entry module not found: Error: Can't resolve './src' in '/root'
43
28
  npm ERR! code ELIFECYCLE
44
- npm ERR! errno 2
29
+ npm ERR! errno 1
45
- npm ERR! root@1.0.0 dev: `webpack --mode development`
30
+ npm ERR! @ dev: `npm run development`
46
- npm ERR! Exit status 2
31
+ npm ERR! Exit status 1
47
32
  npm ERR!
48
- npm ERR! Failed at the root@1.0.0 dev script.
33
+ npm ERR! Failed at the @ dev script.
49
34
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
35
+ npm WARN Local package.json exists, but node_modules missing, did you mean to install?
50
36
 
51
37
  npm ERR! A complete log of this run can be found in:
52
- npm ERR! /root/.npm/_logs/2020-07-28T07_26_29_774Z-debug.log
38
+ npm ERR! /root/.npm/_logs/2020-07-28T07_56_05_312Z-debug.log
39
+ root@4c1bd3b7e7b2:/work/backend#
53
40
  ```
54
41
  当初表示されていたエラーとは違ったのですが、エラー内容で調べていた際に、色々試したのですが、表示されるエラーが毎回違い収集がつかなくなってしまいました。
55
42
  まず、どこから手をつけ直して行けば良いか分からないため、アドバイスを貰えましたら幸いです。

2

タグ追加

2020/07/28 07:57

投稿

study_111
study_111

スコア82

title CHANGED
File without changes
body CHANGED
File without changes

1

タイトル修正

2020/07/28 07:33

投稿

study_111
study_111

スコア82

title CHANGED
@@ -1,1 +1,1 @@
1
- nom run dev実行時のエラーについて
1
+ npm run dev実行時のエラーについて
body CHANGED
File without changes