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

質問編集履歴

3

npm run build のログ

2020/07/16 12:58

投稿

shoco
shoco

スコア170

title CHANGED
File without changes
body CHANGED
@@ -12,6 +12,43 @@
12
12
 
13
13
  (かなり抽象的で申し訳ありません必要な情報があれば追記いたします。)
14
14
 
15
+
16
+ #気になること2
17
+ npm run build したときのログ
18
+ ```
19
+ > eccube@4.0.0 build /Users/tom/dev/app
20
+ > run-p build:*
21
+
22
+
23
+ > eccube@4.0.0 build:js /Users/tom/dev/app
24
+ > 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
25
+
26
+
27
+ > eccube@4.0.0 build:scss /Users/tom/dev/app
28
+ > gulp
29
+
30
+ ⠙ Building...[21:41:43] Using gulpfile ~/dev/app/gulpfile.js
31
+ [21:41:43] Starting 'default'...
32
+ [21:41:43] Starting '<anonymous>'...
33
+ [21:41:43] Starting '<anonymous>'...
34
+ [21:41:43] Starting '<anonymous>'...
35
+ ⠹ Building customize.js...[21:41:43] Finished '<anonymous>' after 40 ms
36
+ [21:41:43] Finished '<anonymous>' after 53 ms
37
+ [21:41:43] Finished '<anonymous>' after 65 ms
38
+ [21:41:43] Starting '<anonymous>'...
39
+ [21:41:43] Starting '<anonymous>'...
40
+ [21:41:43] Starting '<anonymous>'...
41
+ [21:41:43] Finished '<anonymous>' after 20 ms
42
+ ⠸ Building URI.js...[21:41:43] Finished '<anonymous>' after 39 ms
43
+ [21:41:43] Finished '<anonymous>' after 41 ms
44
+ [21:41:43] Finished 'default' after 128 ms
45
+ ✨ Built in 1.77s.
46
+
47
+ html/user_data/assets/js/customize.js.map ⚠️ 1.07 MB 310ms
48
+ html/user_data/assets/js/customize.js 326.3 KB 572ms
49
+ ```
50
+ ↑ビルドされているのはjsだけ?
51
+
15
52
  #追記
16
53
  package.json
17
54
  ```
@@ -88,7 +125,7 @@
88
125
 
89
126
  ```
90
127
 
91
- #追記
128
+ #追記2
92
129
  ・npm i minimatch -Dをしました
93
130
  をしたら脆弱性に関するメッセージが表示されました
94
131
  ```

2

npm audit fixの結果

2020/07/16 12:58

投稿

shoco
shoco

スコア170

title CHANGED
File without changes
body CHANGED
@@ -86,4 +86,54 @@
86
86
  }
87
87
  }
88
88
 
89
- ```
89
+ ```
90
+
91
+ #追記2
92
+ ・npm i minimatch -Dをしました
93
+ をしたら脆弱性に関するメッセージが表示されました
94
+ ```
95
+ 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.
96
+
97
+ + minimatch@3.0.4
98
+ updated 1 package and audited 2082 packages in 13.391s
99
+
100
+ 43 packages are looking for funding
101
+ run `npm fund` for details
102
+
103
+ found 13 vulnerabilities (8 low, 4 moderate, 1 high)
104
+ run `npm audit fix` to fix them, or `npm audit` for details
105
+ ```
106
+
107
+ ・npm audit fixしました。
108
+ をしてみても手動で直さないといけないパッケージがあるらしく
109
+ ここで詰まってしましました。
110
+
111
+ ・npm auditしてhighのもの
112
+ ```
113
+ ┌───────────────┬──────────────────────────────────────────────────────────────┐
114
+ │ High │ Insufficient Entropy │
115
+ ├───────────────┼──────────────────────────────────────────────────────────────┤
116
+ │ Package │ cryptiles │
117
+ ├───────────────┼──────────────────────────────────────────────────────────────┤
118
+ │ Patched in │ >=4.1.2 │
119
+ ├───────────────┼──────────────────────────────────────────────────────────────┤
120
+ │ Dependency of │ gulp-pleeease │
121
+ ├───────────────┼──────────────────────────────────────────────────────────────┤
122
+ │ Path │ gulp-pleeease > pleeease > less > request > hawk > cryptiles │
123
+ ├───────────────┼──────────────────────────────────────────────────────────────┤
124
+ │ More info │ https://npmjs.com/advisories/1464 │
125
+ └───────────────┴──────────────────────────────────────────────────────────────┘
126
+ ```
127
+
128
+ ・npm ls cryptilesしてでたもの
129
+ ```
130
+ eccube@4.0.0 /Users/tom/dev/app
131
+ └─┬ gulp-pleeease@2.0.2
132
+ └─┬ pleeease@4.3.0
133
+ └─┬ less@2.7.3
134
+ └─┬ request@2.81.0
135
+ └─┬ hawk@3.1.3
136
+ └── cryptiles@2.0.5
137
+ ```
138
+
139
+ cryptilesを削除しても変化起こらず、、、、、、

1

package.json追加

2020/07/16 09:38

投稿

shoco
shoco

スコア170

title CHANGED
File without changes
body CHANGED
@@ -10,4 +10,80 @@
10
10
 
11
11
  何か心当たりがありましたら教えていただきたいです。
12
12
 
13
- (かなり抽象的で申し訳ありません必要な情報があれば追記いたします。)
13
+ (かなり抽象的で申し訳ありません必要な情報があれば追記いたします。)
14
+
15
+ #追記
16
+ package.json
17
+ ```
18
+
19
+ {
20
+ "name": "eccube",
21
+ "version": "4.0.0",
22
+ "description": "EC-CUBE EC open platform.",
23
+ "main": "index.js",
24
+ "directories": {
25
+ "test": "tests"
26
+ },
27
+ "scripts": {
28
+ "check": "npm-check --update",
29
+ "test": "echo \"Error: no test specified\" && exit 1",
30
+ "clean": "echo \"Error: no clean specified\" && exit 1",
31
+ "start": "echo \"Error: no start specified\" && exit 1",
32
+ "build": "run-p build:*",
33
+ "build:scss": "gulp",
34
+ "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",
35
+ "watch": "run-p watch:*",
36
+ "watch:scss": "gulp watch",
37
+ "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",
38
+ "bash": "docker-compose exec ec-cube bash",
39
+ "logs": "docker-compose logs -f ec-cube"
40
+ },
41
+ "repository": {
42
+ "type": "git",
43
+ "url": "git+https://github.com/XXXXXXXX/xxxxxxxxxxx.git"
44
+ },
45
+ "author": "",
46
+ "license": "GPL-2.0",
47
+ "bugs": {
48
+ "url": "https://github.com/XXXXXXXX/xxxxxxxxxxx.git"
49
+ },
50
+ "homepage": "https://www.xxxxxxx.net/",
51
+ "dependencies": {
52
+ "autoprefixer": "^9.8.5",
53
+ "bootstrap": "^4.5.0",
54
+ "bootstrap-sass": "^3.4.1",
55
+ "cross-env": "^7.0.2",
56
+ "css-mqpacker": "^7.0.0",
57
+ "gulp": "^4.0.2",
58
+ "gulp-clean-css": "^4.3.0",
59
+ "gulp-notify": "^3.0.0",
60
+ "gulp-pleeease": "^2.0.2",
61
+ "gulp-plumber": "^1.2.1",
62
+ "gulp-postcss": "^8.0.0",
63
+ "gulp-pug": "^4.0.1",
64
+ "gulp-rename": "^2.0.0",
65
+ "gulp-sass": "^4.1.0",
66
+ "gulp-sourcemaps": "^2.6.5",
67
+ "husky": "^4.2.5",
68
+ "jquery": "^3.5.1",
69
+ "lint-staged": "^10.2.11",
70
+ "node-sass-package-importer": "^5.3.2",
71
+ "normalize.css": "^8.0.1",
72
+ "npm-check": "^5.9.2",
73
+ "npm-run-all": "^4.1.5",
74
+ "parcel": "^1.12.4",
75
+ "postcss-import": "^12.0.1",
76
+ "run-sequence": "^2.2.1",
77
+ "sort-css-media-queries": "^1.5.0",
78
+ "uikit": "^3.5.4",
79
+ "urijs": "^1.19.2"
80
+ },
81
+ "browserslist": [
82
+ "last 2 versions"
83
+ ],
84
+ "devDependencies": {
85
+ "gulp-imagemin": "^7.1.0"
86
+ }
87
+ }
88
+
89
+ ```