質問編集履歴

4

エラー内容修正

2020/07/28 08:06

投稿

study_111
study_111

スコア82

test CHANGED
File without changes
test CHANGED
@@ -6,6 +6,138 @@
6
6
 
7
7
  ```
8
8
 
9
+ > @ dev /work/backend
10
+
11
+ > npm run development
12
+
13
+
14
+
15
+
16
+
17
+ > @ development /work/backend
18
+
19
+ > cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
20
+
21
+
22
+
23
+ sh: 1: cross-env: not found
24
+
25
+ npm ERR! code ELIFECYCLE
26
+
27
+ npm ERR! syscall spawn
28
+
29
+ npm ERR! file sh
30
+
31
+ npm ERR! errno ENOENT
32
+
33
+ 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`
34
+
35
+ npm ERR! spawn ENOENT
36
+
37
+ npm ERR!
38
+
39
+ npm ERR! Failed at the @ development script.
40
+
41
+ npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
42
+
43
+ npm WARN Local package.json exists, but node_modules missing, did you mean to install?
44
+
45
+
46
+
47
+ npm ERR! A complete log of this run can be found in:
48
+
49
+ npm ERR! /root/.npm/_logs/2020-07-28T07_56_05_284Z-debug.log
50
+
51
+ npm ERR! code ELIFECYCLE
52
+
53
+ npm ERR! errno 1
54
+
55
+ npm ERR! @ dev: `npm run development`
56
+
57
+ npm ERR! Exit status 1
58
+
59
+ npm ERR!
60
+
61
+ npm ERR! Failed at the @ dev script.
62
+
63
+ npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
64
+
65
+ npm WARN Local package.json exists, but node_modules missing, did you mean to install?
66
+
67
+
68
+
69
+ npm ERR! A complete log of this run can be found in:
70
+
71
+ npm ERR! /root/.npm/_logs/2020-07-28T07_56_05_312Z-debug.log
72
+
73
+ root@4c1bd3b7e7b2:/work/backend# npm install
74
+
75
+ 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
76
+
77
+ npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
78
+
79
+ npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
80
+
81
+ npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
82
+
83
+ npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
84
+
85
+ npm notice created a lockfile as package-lock.json. You should commit this file.
86
+
87
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):
88
+
89
+ npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
90
+
91
+ 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"})
92
+
93
+ npm WARN notsup Not compatible with your version of node/npm: watchpack-chokidar2@2.0.0
94
+
95
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents):
96
+
97
+ npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
98
+
99
+
100
+
101
+ added 1040 packages from 498 contributors and audited 1043 packages in 112.735s
102
+
103
+
104
+
105
+ 33 packages are looking for funding
106
+
107
+ run `npm fund` for details
108
+
109
+
110
+
111
+ found 1 low severity vulnerability
112
+
113
+ run `npm audit fix` to fix them, or `npm audit` for details
114
+
115
+ root@4c1bd3b7e7b2:/work/backend# npm audit fix
116
+
117
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
118
+
119
+ npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
120
+
121
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/watchpack/node_modules/fsevents):
122
+
123
+ npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
124
+
125
+
126
+
127
+ up to date in 13.781s
128
+
129
+
130
+
131
+ 33 packages are looking for funding
132
+
133
+ run `npm fund` for details
134
+
135
+
136
+
137
+ fixed 0 of 1 vulnerability in 1043 scanned packages
138
+
139
+ 1 vulnerability required manual review and could not be updated
140
+
9
141
  root@4c1bd3b7e7b2:/work/backend# npm run dev
10
142
 
11
143
 
@@ -24,57 +156,45 @@
24
156
 
25
157
 
26
158
 
27
- sh: 1: cross-env: not found
28
-
29
- npm ERR! code ELIFECYCLE
30
-
31
- npm ERR! syscall spawn
32
-
33
- npm ERR! file sh
34
-
35
- npm ERR! errno ENOENT
36
-
37
- 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`
38
-
39
- npm ERR! spawn ENOENT
40
-
41
- npm ERR!
42
-
43
- npm ERR! Failed at the @ development script.
44
-
45
- npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
46
-
47
- npm WARN Local package.json exists, but node_modules missing, did you mean to install?
159
+ Additional dependencies must be installed. This will only take a moment.
48
-
49
-
50
-
160
+
161
+
162
+
51
- npm ERR! A complete log of this run can be found in:
163
+ Running: npm install vue-template-compiler --save-dev --production=false
52
-
53
- npm ERR! /root/.npm/_logs/2020-07-28T07_56_05_284Z-debug.log
164
+
54
-
55
- npm ERR! code ELIFECYCLE
165
+
56
-
57
- npm ERR! errno 1
166
+
58
-
59
- npm ERR! @ dev: `npm run development`
60
-
61
- npm ERR! Exit status 1
62
-
63
- npm ERR!
64
-
65
- npm ERR! Failed at the @ dev script.
66
-
67
- npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
68
-
69
- npm WARN Local package.json exists, but node_modules missing, did you mean to install?
167
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
168
+
70
-
169
+ npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
170
+
71
-
171
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/watchpack/node_modules/fsevents):
172
+
72
-
173
+ npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
174
+
175
+
176
+
177
+ Okay, done. The following packages have been installed and saved to your package.json dependencies list:
178
+
179
+
180
+
181
+ - vue-template-compiler
182
+
183
+
184
+
185
+ 98% after emitting SizeLimitsPlugin
186
+
187
+
188
+
189
+ DONE Compiled successfully in 38154ms 8:03:40 AM
190
+
191
+
192
+
73
- npm ERR! A complete log of this run can be found in:
193
+ Asset Size Chunks Chunk Names
194
+
74
-
195
+ /css/app.css 178 KiB /js/app [emitted] /js/app
196
+
75
- npm ERR! /root/.npm/_logs/2020-07-28T07_56_05_312Z-debug.log
197
+ /js/app.js 1.07 MiB /js/app [emitted] /js/app
76
-
77
- root@4c1bd3b7e7b2:/work/backend#
78
198
 
79
199
  ```
80
200
 

3

エラー内容修正

2020/07/28 08:06

投稿

study_111
study_111

スコア82

test CHANGED
File without changes
test CHANGED
@@ -6,101 +6,75 @@
6
6
 
7
7
  ```
8
8
 
9
- > root@1.0.0 dev /root
9
+ root@4c1bd3b7e7b2:/work/backend# npm run dev
10
10
 
11
+
12
+
13
+ > @ dev /work/backend
14
+
11
- > webpack --mode development
15
+ > npm run development
12
16
 
13
17
 
14
18
 
15
19
 
16
20
 
17
- Insufficient number of arguments or no entry found.
21
+ > @ development /work/backend
18
22
 
19
- Alternatively, run 'webpack(-cli) --help' for usage info.
23
+ > cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
20
24
 
21
25
 
22
26
 
23
- Hash: 6bd72c59c4f7f50efe2b
27
+ sh: 1: cross-env: not found
24
-
25
- Version: webpack 4.44.0
26
-
27
- Time: 77ms
28
-
29
- Built at: 07/28/2020 6:40:08 AM
30
-
31
-
32
-
33
- ERROR in Entry module not found: Error: Can't resolve './src' in '/root'
34
28
 
35
29
  npm ERR! code ELIFECYCLE
36
30
 
37
- npm ERR! errno 2
31
+ npm ERR! syscall spawn
38
32
 
39
- npm ERR! root@1.0.0 dev: `webpack --mode development`
33
+ npm ERR! file sh
40
34
 
41
- npm ERR! Exit status 2
35
+ npm ERR! errno ENOENT
36
+
37
+ 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`
38
+
39
+ npm ERR! spawn ENOENT
42
40
 
43
41
  npm ERR!
44
42
 
45
- npm ERR! Failed at the root@1.0.0 dev script.
43
+ npm ERR! Failed at the @ development script.
46
44
 
47
45
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
46
+
47
+ npm WARN Local package.json exists, but node_modules missing, did you mean to install?
48
48
 
49
49
 
50
50
 
51
51
  npm ERR! A complete log of this run can be found in:
52
52
 
53
- npm ERR! /root/.npm/_logs/2020-07-28T06_40_08_178Z-debug.log
53
+ npm ERR! /root/.npm/_logs/2020-07-28T07_56_05_284Z-debug.log
54
-
55
- root@4c1bd3b7e7b2:~# npm run dev
56
-
57
-
58
-
59
- > root@1.0.0 dev /root
60
-
61
- > webpack --mode development
62
-
63
-
64
-
65
-
66
-
67
- Insufficient number of arguments or no entry found.
68
-
69
- Alternatively, run 'webpack(-cli) --help' for usage info.
70
-
71
-
72
-
73
- Hash: 6bd72c59c4f7f50efe2b
74
-
75
- Version: webpack 4.44.0
76
-
77
- Time: 89ms
78
-
79
- Built at: 07/28/2020 7:26:29 AM
80
-
81
-
82
-
83
- ERROR in Entry module not found: Error: Can't resolve './src' in '/root'
84
54
 
85
55
  npm ERR! code ELIFECYCLE
86
56
 
87
- npm ERR! errno 2
57
+ npm ERR! errno 1
88
58
 
89
- npm ERR! root@1.0.0 dev: `webpack --mode development`
59
+ npm ERR! @ dev: `npm run development`
90
60
 
91
- npm ERR! Exit status 2
61
+ npm ERR! Exit status 1
92
62
 
93
63
  npm ERR!
94
64
 
95
- npm ERR! Failed at the root@1.0.0 dev script.
65
+ npm ERR! Failed at the @ dev script.
96
66
 
97
67
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
68
+
69
+ npm WARN Local package.json exists, but node_modules missing, did you mean to install?
98
70
 
99
71
 
100
72
 
101
73
  npm ERR! A complete log of this run can be found in:
102
74
 
103
- npm ERR! /root/.npm/_logs/2020-07-28T07_26_29_774Z-debug.log
75
+ npm ERR! /root/.npm/_logs/2020-07-28T07_56_05_312Z-debug.log
76
+
77
+ root@4c1bd3b7e7b2:/work/backend#
104
78
 
105
79
  ```
106
80
 

2

タグ追加

2020/07/28 07:57

投稿

study_111
study_111

スコア82

test CHANGED
File without changes
test CHANGED
File without changes

1

タイトル修正

2020/07/28 07:33

投稿

study_111
study_111

スコア82

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