質問編集履歴

1

試したことで状況が変わったため書き直し

2018/10/16 17:11

投稿

wakasat
wakasat

スコア11

test CHANGED
@@ -1 +1 @@
1
- MacでのGulp環境構築について
1
+ MacでのGulpインストール
test CHANGED
@@ -1,8 +1,4 @@
1
1
  ### 前提・実現したいこと
2
-
3
-
4
-
5
- すみません。どうしてもわからなくて質問させてください。
6
2
 
7
3
 
8
4
 
@@ -12,21 +8,15 @@
12
8
 
13
9
 
14
10
 
15
- 以前、Mac(Sierra)で環境を作ったときはうまく行ったのですが、
16
-
17
- 今回High Sierraにしてから
18
-
19
- 新しく環境を構築しようとしても、
20
-
21
- Gulp自体がインストールされていないと表示されます。
22
-
23
-
24
-
25
11
  ### 参考にしたもの↓
26
12
 
27
13
  - [UnderStrap Documentation](https://understrap.github.io/)
28
14
 
29
15
  - [WordPressのテーマ「UnderStrap」のカスタマイズや使い方などの覚書 KEN-G.COM](https://www.ken-g.com/blog/archives/201803/understrap.html)
16
+
17
+ - [npm intallしたときに脆弱性チェックでエラーが発生した](https://qiita.com/okaokaokaokatoru/items/2ca5b26b06a99fab6547#_reference-f492afe386338e775bf4)
18
+
19
+ - [Gulpのインストール時のエラー内容と解決策まとめ](https://web-guided.com/post-260)
30
20
 
31
21
 
32
22
 
@@ -36,15 +26,11 @@
36
26
 
37
27
  - npm 6.4.1
38
28
 
39
- - Homebrew 1.7.6
40
-
41
- Homebrew/homebrew-core (git revision 1cfa; last commit 2018-09-26)
42
-
43
- Homebrew/homebrew-cask (git revision 5151d; last commit 2018-09-26)
44
-
45
29
 
46
30
 
47
31
  ### 実行結果
32
+
33
+ nodeは[ここ](https://nodejs.org/ja/)からインストールしました。
48
34
 
49
35
  ```
50
36
 
@@ -116,10 +102,56 @@
116
102
 
117
103
 
118
104
 
119
- nodeは[ここ](https://nodejs.org/en/download/)からインストールしましが、うまく行かなかったため別記事を参考にhomebrewインストールしまし
105
+ `npm audit fix`と出たので調べてみところ、
120
106
 
121
- その際、前にインストールしたヘなど出てきたのでしました。
107
+ 脆弱性チェクでエラーが発生しということでしたので上記記事を参考に直しました。
108
+
109
+ ですが未だに
110
+
111
+ ```
112
+
113
+ updated 1 package, moved 1 package and audited 23291 packages in 8.938s
114
+
115
+ found 6 moderate severity vulnerabilities
116
+
117
+ run `npm audit fix` to fix them, or `npm audit` for details
118
+
119
+ ```
120
+
121
+ と表示されます。
122
+
123
+ 権限周りのエラーも出たので、権限を与えましたがエラーが出ます。
122
124
 
123
125
 
124
126
 
127
+ ```
128
+
129
+ $ sudo npm audit fix
130
+
131
+ up to date in 5.363s
132
+
133
+ fixed 0 of 6 vulnerabilities in 23291 scanned packages
134
+
135
+ 6 vulnerabilities required manual review and could not be updated
136
+
137
+ MacBook-Pro:understrap $ sudo npm install
138
+
139
+ npm WARN lifecycle understrap@0.8.7~postinstall: cannot run in wd understrap@0.8.7 gulp copy-assets (wd=/Applications/MAMP/htdocs/test/wp-content/themes/understrap)
140
+
141
+ audited 23291 packages in 7.078s
142
+
143
+ found 6 moderate severity vulnerabilities
144
+
145
+ run `npm audit fix` to fix them, or `npm audit` for details
146
+
147
+ MacBook-Pro:understrap $
148
+
149
+ ```
150
+
151
+ 何をすれば良いのかもお手上げです…
152
+
153
+
154
+
155
+ すみません、どうかご教授頂けないでしょうか
156
+
125
- すみません、よろしくお願いいたします。
157
+ よろしくお願いいたします。