質問編集履歴

3

npm run build のログ

2020/07/16 12:58

投稿

shoco
shoco

スコア148

test CHANGED
File without changes
test CHANGED
@@ -26,6 +26,80 @@
26
26
 
27
27
 
28
28
 
29
+
30
+
31
+ #気になること2
32
+
33
+ npm run build したときのログ
34
+
35
+ ```
36
+
37
+ > eccube@4.0.0 build /Users/tom/dev/app
38
+
39
+ > run-p build:*
40
+
41
+
42
+
43
+
44
+
45
+ > eccube@4.0.0 build:js /Users/tom/dev/app
46
+
47
+ > parcel build ./html/user_data/assets/es/customize.js --out-dir ./html/user_data/assets/js --out-file customize.js --target browser --bundle-node-modules
48
+
49
+
50
+
51
+
52
+
53
+ > eccube@4.0.0 build:scss /Users/tom/dev/app
54
+
55
+ > gulp
56
+
57
+
58
+
59
+ ⠙ Building...[21:41:43] Using gulpfile ~/dev/app/gulpfile.js
60
+
61
+ [21:41:43] Starting 'default'...
62
+
63
+ [21:41:43] Starting '<anonymous>'...
64
+
65
+ [21:41:43] Starting '<anonymous>'...
66
+
67
+ [21:41:43] Starting '<anonymous>'...
68
+
69
+ ⠹ Building customize.js...[21:41:43] Finished '<anonymous>' after 40 ms
70
+
71
+ [21:41:43] Finished '<anonymous>' after 53 ms
72
+
73
+ [21:41:43] Finished '<anonymous>' after 65 ms
74
+
75
+ [21:41:43] Starting '<anonymous>'...
76
+
77
+ [21:41:43] Starting '<anonymous>'...
78
+
79
+ [21:41:43] Starting '<anonymous>'...
80
+
81
+ [21:41:43] Finished '<anonymous>' after 20 ms
82
+
83
+ ⠸ Building URI.js...[21:41:43] Finished '<anonymous>' after 39 ms
84
+
85
+ [21:41:43] Finished '<anonymous>' after 41 ms
86
+
87
+ [21:41:43] Finished 'default' after 128 ms
88
+
89
+ ✨ Built in 1.77s.
90
+
91
+
92
+
93
+ html/user_data/assets/js/customize.js.map ⚠️ 1.07 MB 310ms
94
+
95
+ html/user_data/assets/js/customize.js 326.3 KB 572ms
96
+
97
+ ```
98
+
99
+ ↑ビルドされているのはjsだけ?
100
+
101
+
102
+
29
103
  #追記
30
104
 
31
105
  package.json
@@ -178,7 +252,7 @@
178
252
 
179
253
 
180
254
 
181
- #追記
255
+ #追記2
182
256
 
183
257
  ・npm i minimatch -Dをしました
184
258
 

2

npm audit fixの結果

2020/07/16 12:58

投稿

shoco
shoco

スコア148

test CHANGED
File without changes
test CHANGED
@@ -175,3 +175,103 @@
175
175
 
176
176
 
177
177
  ```
178
+
179
+
180
+
181
+ #追記2
182
+
183
+ ・npm i minimatch -Dをしました
184
+
185
+ をしたら脆弱性に関するメッセージが表示されました
186
+
187
+ ```
188
+
189
+ npm WARN bootstrap@4.5.0 requires a peer of popper.js@^1.16.0 but none is installed. You must install peer dependencies yourself.
190
+
191
+
192
+
193
+ + minimatch@3.0.4
194
+
195
+ updated 1 package and audited 2082 packages in 13.391s
196
+
197
+
198
+
199
+ 43 packages are looking for funding
200
+
201
+ run `npm fund` for details
202
+
203
+
204
+
205
+ found 13 vulnerabilities (8 low, 4 moderate, 1 high)
206
+
207
+ run `npm audit fix` to fix them, or `npm audit` for details
208
+
209
+ ```
210
+
211
+
212
+
213
+ ・npm audit fixしました。
214
+
215
+ をしてみても手動で直さないといけないパッケージがあるらしく
216
+
217
+ ここで詰まってしましました。
218
+
219
+
220
+
221
+ ・npm auditしてhighのもの
222
+
223
+ ```
224
+
225
+ ┌───────────────┬──────────────────────────────────────────────────────────────┐
226
+
227
+ │ High │ Insufficient Entropy │
228
+
229
+ ├───────────────┼──────────────────────────────────────────────────────────────┤
230
+
231
+ │ Package │ cryptiles │
232
+
233
+ ├───────────────┼──────────────────────────────────────────────────────────────┤
234
+
235
+ │ Patched in │ >=4.1.2 │
236
+
237
+ ├───────────────┼──────────────────────────────────────────────────────────────┤
238
+
239
+ │ Dependency of │ gulp-pleeease │
240
+
241
+ ├───────────────┼──────────────────────────────────────────────────────────────┤
242
+
243
+ │ Path │ gulp-pleeease > pleeease > less > request > hawk > cryptiles │
244
+
245
+ ├───────────────┼──────────────────────────────────────────────────────────────┤
246
+
247
+ │ More info │ https://npmjs.com/advisories/1464 │
248
+
249
+ └───────────────┴──────────────────────────────────────────────────────────────┘
250
+
251
+ ```
252
+
253
+
254
+
255
+ ・npm ls cryptilesしてでたもの
256
+
257
+ ```
258
+
259
+ eccube@4.0.0 /Users/tom/dev/app
260
+
261
+ └─┬ gulp-pleeease@2.0.2
262
+
263
+ └─┬ pleeease@4.3.0
264
+
265
+ └─┬ less@2.7.3
266
+
267
+ └─┬ request@2.81.0
268
+
269
+ └─┬ hawk@3.1.3
270
+
271
+ └── cryptiles@2.0.5
272
+
273
+ ```
274
+
275
+
276
+
277
+ cryptilesを削除しても変化起こらず、、、、、、

1

package.json追加

2020/07/16 09:38

投稿

shoco
shoco

スコア148

test CHANGED
File without changes
test CHANGED
@@ -23,3 +23,155 @@
23
23
 
24
24
 
25
25
  (かなり抽象的で申し訳ありません必要な情報があれば追記いたします。)
26
+
27
+
28
+
29
+ #追記
30
+
31
+ package.json
32
+
33
+ ```
34
+
35
+
36
+
37
+ {
38
+
39
+ "name": "eccube",
40
+
41
+ "version": "4.0.0",
42
+
43
+ "description": "EC-CUBE EC open platform.",
44
+
45
+ "main": "index.js",
46
+
47
+ "directories": {
48
+
49
+ "test": "tests"
50
+
51
+ },
52
+
53
+ "scripts": {
54
+
55
+ "check": "npm-check --update",
56
+
57
+ "test": "echo \"Error: no test specified\" && exit 1",
58
+
59
+ "clean": "echo \"Error: no clean specified\" && exit 1",
60
+
61
+ "start": "echo \"Error: no start specified\" && exit 1",
62
+
63
+ "build": "run-p build:*",
64
+
65
+ "build:scss": "gulp",
66
+
67
+ "build:js": "parcel build ./html/user_data/assets/es/customize.js --out-dir ./html/user_data/assets/js --out-file customize.js --target browser --bundle-node-modules",
68
+
69
+ "watch": "run-p watch:*",
70
+
71
+ "watch:scss": "gulp watch",
72
+
73
+ "watch:js": "parcel watch ./html/user_data/assets/es/customize.js --out-dir ./html/user_data/assets/js --out-file customize.js --target browser --bundle-node-modules",
74
+
75
+ "bash": "docker-compose exec ec-cube bash",
76
+
77
+ "logs": "docker-compose logs -f ec-cube"
78
+
79
+ },
80
+
81
+ "repository": {
82
+
83
+ "type": "git",
84
+
85
+ "url": "git+https://github.com/XXXXXXXX/xxxxxxxxxxx.git"
86
+
87
+ },
88
+
89
+ "author": "",
90
+
91
+ "license": "GPL-2.0",
92
+
93
+ "bugs": {
94
+
95
+ "url": "https://github.com/XXXXXXXX/xxxxxxxxxxx.git"
96
+
97
+ },
98
+
99
+ "homepage": "https://www.xxxxxxx.net/",
100
+
101
+ "dependencies": {
102
+
103
+ "autoprefixer": "^9.8.5",
104
+
105
+ "bootstrap": "^4.5.0",
106
+
107
+ "bootstrap-sass": "^3.4.1",
108
+
109
+ "cross-env": "^7.0.2",
110
+
111
+ "css-mqpacker": "^7.0.0",
112
+
113
+ "gulp": "^4.0.2",
114
+
115
+ "gulp-clean-css": "^4.3.0",
116
+
117
+ "gulp-notify": "^3.0.0",
118
+
119
+ "gulp-pleeease": "^2.0.2",
120
+
121
+ "gulp-plumber": "^1.2.1",
122
+
123
+ "gulp-postcss": "^8.0.0",
124
+
125
+ "gulp-pug": "^4.0.1",
126
+
127
+ "gulp-rename": "^2.0.0",
128
+
129
+ "gulp-sass": "^4.1.0",
130
+
131
+ "gulp-sourcemaps": "^2.6.5",
132
+
133
+ "husky": "^4.2.5",
134
+
135
+ "jquery": "^3.5.1",
136
+
137
+ "lint-staged": "^10.2.11",
138
+
139
+ "node-sass-package-importer": "^5.3.2",
140
+
141
+ "normalize.css": "^8.0.1",
142
+
143
+ "npm-check": "^5.9.2",
144
+
145
+ "npm-run-all": "^4.1.5",
146
+
147
+ "parcel": "^1.12.4",
148
+
149
+ "postcss-import": "^12.0.1",
150
+
151
+ "run-sequence": "^2.2.1",
152
+
153
+ "sort-css-media-queries": "^1.5.0",
154
+
155
+ "uikit": "^3.5.4",
156
+
157
+ "urijs": "^1.19.2"
158
+
159
+ },
160
+
161
+ "browserslist": [
162
+
163
+ "last 2 versions"
164
+
165
+ ],
166
+
167
+ "devDependencies": {
168
+
169
+ "gulp-imagemin": "^7.1.0"
170
+
171
+ }
172
+
173
+ }
174
+
175
+
176
+
177
+ ```