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

質問編集履歴

11

追記

2018/01/24 11:13

投稿

roronoazoro
roronoazoro

スコア113

title CHANGED
File without changes
body CHANGED
@@ -255,13 +255,10 @@
255
255
  find: /dev/fd/3: Not a directory
256
256
  find: /dev/fd/4: Not a directory
257
257
 
258
- bash-3.2$ source $HOME/.bashrc
259
258
  bash-3.2$ ls -l /usr/local/Cellar
260
- total 0
261
259
  drwxr-xr-x 3 ユーザー名 admin 96 10 6 06:15 ruby
262
260
 
263
261
  bash-3.2$ ls -l /usr/local/lib
264
- total 0
265
262
  drwxrwxr-x 3 ユーザー名 admin 96 9 27 22:27 dtrace
266
263
  drwxrwxr-x 16 ユーザー名 admin 512 1 23 17:57 node_modules
267
264
  drwxr-xr-x 3 ユーザー名 admin 96 7 21 2017 python2.7

10

tuiki

2018/01/24 11:13

投稿

roronoazoro
roronoazoro

スコア113

title CHANGED
File without changes
body CHANGED
@@ -237,7 +237,9 @@
237
237
  Tapped 0 formulae (4,002 files, 4.3MB)
238
238
  ==> Creating Caskroom at /usr/local/Caskroom
239
239
  ==> We'll set permissions properly so we won't need sudo in the future
240
+ ```
240
241
 
242
+ ```bash
241
243
  //追記
242
244
  bash-3.2$ sudo find / -name "brew"
243
245
  Password:

9

追記

2018/01/24 11:10

投稿

roronoazoro
roronoazoro

スコア113

title CHANGED
File without changes
body CHANGED
@@ -192,24 +192,6 @@
192
192
  /usr/local/include/node/node_version.h
193
193
  /usr/local/include/node/openssl/aes.h
194
194
  /usr/local/include/node/openssl/archs/BSD-x86/opensslconf.h
195
- /usr/local/include/node/openssl/archs/BSD-x86_64/opensslconf.h
196
- /usr/local/include/node/openssl/archs/VC-WIN32/opensslconf.h
197
- /usr/local/include/node/openssl/archs/VC-WIN64A/opensslconf.h
198
- /usr/local/include/node/openssl/archs/aix-gcc/opensslconf.h
199
- /usr/local/include/node/openssl/archs/aix64-gcc/opensslconf.h
200
- /usr/local/include/node/openssl/archs/darwin-i386-cc/opensslconf.h
201
- /usr/local/include/node/openssl/archs/darwin64-x86_64-cc/opensslconf.h
202
- /usr/local/include/node/openssl/archs/linux-aarch64/opensslconf.h
203
- /usr/local/include/node/openssl/archs/linux-armv4/opensslconf.h
204
- /usr/local/include/node/openssl/archs/linux-elf/opensslconf.h
205
- /usr/local/include/node/openssl/archs/linux-ppc/opensslconf.h
206
- /usr/local/include/node/openssl/archs/linux-ppc64/opensslconf.h
207
- /usr/local/include/node/openssl/archs/linux-x32/opensslconf.h
208
- /usr/local/include/node/openssl/archs/linux-x86_64/opensslconf.h
209
- /usr/local/include/node/openssl/archs/linux32-s390x/opensslconf.h
210
- /usr/local/include/node/openssl/archs/linux64-s390x/opensslconf.h
211
- /usr/local/include/node/openssl/archs/solaris-x86-gcc/opensslconf.h
212
- /usr/local/include/node/openssl/archs/solaris64-x86_64-gcc/opensslconf.h
213
195
  // ...以下文字数制限により省略
214
196
 
215
197
  Warning: You have unlinked kegs in your Cellar
@@ -255,4 +237,31 @@
255
237
  Tapped 0 formulae (4,002 files, 4.3MB)
256
238
  ==> Creating Caskroom at /usr/local/Caskroom
257
239
  ==> We'll set permissions properly so we won't need sudo in the future
240
+
241
+ //追記
242
+ bash-3.2$ sudo find / -name "brew"
243
+ Password:
244
+ find: /private/var/db/ConfigurationProfiles/Store: Operation not permitted
245
+ find: /private/var/folders/js/77b1ttqn6dlgdc3qw57s6_xh0000gn/0/SafariFamily: Operation not permitted
246
+ find: /private/var/folders/js/77b1ttqn6dlgdc3qw57s6_xh0000gn/0/com.apple.LaunchServices.dv: Operation not permitted
247
+ find: /private/var/folders/js/77b1ttqn6dlgdc3qw57s6_xh0000gn/0/com.apple.nsurlsessiond: Operation not permitted
248
+ find: /private/var/folders/js/77b1ttqn6dlgdc3qw57s6_xh0000gn/0/com.apple.routined: Operation not permitted
249
+ find: /private/var/folders/0n/8t0zp0d919gby3shbrd9n29r0000gp/0/com.apple.LaunchServices.dv: Operation not permitted
250
+ find: /private/var/folders/zz/zyxvpxvq6csfxvn_n00000y800007k/0/com.apple.nsurlsessiond: Operation not permitted
251
+ find: /private/var/folders/7_/lk68k4bx2nqfddqqvlfzhzyr0000gq/0/com.apple.LaunchServices.dv: Operation not permitted
252
+ /Users/ユーザー名/.oh-my-zsh/plugins/brew
253
+ find: /dev/fd/3: Not a directory
254
+ find: /dev/fd/4: Not a directory
255
+
256
+ bash-3.2$ source $HOME/.bashrc
257
+ bash-3.2$ ls -l /usr/local/Cellar
258
+ total 0
259
+ drwxr-xr-x 3 ユーザー名 admin 96 10 6 06:15 ruby
260
+
261
+ bash-3.2$ ls -l /usr/local/lib
262
+ total 0
263
+ drwxrwxr-x 3 ユーザー名 admin 96 9 27 22:27 dtrace
264
+ drwxrwxr-x 16 ユーザー名 admin 512 1 23 17:57 node_modules
265
+ drwxr-xr-x 3 ユーザー名 admin 96 7 21 2017 python2.7
266
+ drwxr-xr-x 4 ユーザー名 admin 128 1 24 17:17 ruby
258
267
  ```

8

修正

2018/01/24 11:08

投稿

roronoazoro
roronoazoro

スコア113

title CHANGED
File without changes
body CHANGED
@@ -254,4 +254,5 @@
254
254
  Resolving deltas: 100% (36/36), done.
255
255
  Tapped 0 formulae (4,002 files, 4.3MB)
256
256
  ==> Creating Caskroom at /usr/local/Caskroom
257
- ==> We'll set permissions properly so we won't need sudo in the future```
257
+ ==> We'll set permissions properly so we won't need sudo in the future
258
+ ```

7

追記

2018/01/24 08:10

投稿

roronoazoro
roronoazoro

スコア113

title CHANGED
File without changes
body CHANGED
@@ -230,4 +230,28 @@
230
230
  ProductVersion: 10.13.2
231
231
  BuildVersion: 17C205
232
232
  macOS High Sierra バージョン 10.13.2
233
- ```
233
+ ```
234
+
235
+ ### 1/24 追記
236
+ ```json
237
+ [$] brew prune
238
+ Pruned 5 symbolic links and 10 directories from /usr/local
239
+
240
+ [$] brew list
241
+ autoconf node pkg-config ruby yarn
242
+ gdbm openssl python ruby-build zsh
243
+ icu4c openssl@1.1 rbenv sqlite zsh-completions
244
+ jenkins pcre readline tree
245
+ libyaml perl rename vim
246
+
247
+ [$] brew cask list
248
+ ==> Tapping caskroom/cask
249
+ Cloning into '/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask'...
250
+ remote: Counting objects: 3993, done.
251
+ remote: Compressing objects: 100% (3970/3970), done.
252
+ remote: Total 3993 (delta 36), reused 618 (delta 19), pack-reused 0
253
+ Receiving objects: 100% (3993/3993), 1.37 MiB | 594.00 KiB/s, done.
254
+ Resolving deltas: 100% (36/36), done.
255
+ Tapped 0 formulae (4,002 files, 4.3MB)
256
+ ==> Creating Caskroom at /usr/local/Caskroom
257
+ ==> We'll set permissions properly so we won't need sudo in the future```

6

追記

2018/01/24 08:09

投稿

roronoazoro
roronoazoro

スコア113

title CHANGED
File without changes
body CHANGED
@@ -131,11 +131,11 @@
131
131
 
132
132
  // brew自体の権限と所有者権限
133
133
  [$] ls -l /usr/local/Homebrew/bin/brew
134
- -rwxr-xr-x 1 ユーザー名 admin 2548 1 3 19:07 /usr/local/Homebrew/bin/brew
134
+ -rwxr-xr-x 1 ユーザー名 admin 2548 1 3 19:07 /usr/local/Homebrew/bin/brew // 返り値赤文字
135
135
 
136
136
  // brewでインストールされたものの権限と所有者情報
137
137
  [$] ls -l /usr/local/bin/node
138
- -rwxrwxr-x 1 ユーザー名 admin 35731472 10 29 16:44 /usr/local/bin/node
138
+ -rwxrwxr-x 1 ユーザー名 admin 35731472 10 29 16:44 /usr/local/bin/node // 返り値赤文字
139
139
 
140
140
  // 配下ディレクトリのCellerの権限と所有者情報
141
141
  [$] ls -l /usr/local

5

追記

2018/01/24 00:39

投稿

roronoazoro
roronoazoro

スコア113

title CHANGED
File without changes
body CHANGED
@@ -229,4 +229,5 @@
229
229
  ProductName: Mac OS X
230
230
  ProductVersion: 10.13.2
231
231
  BuildVersion: 17C205
232
+ macOS High Sierra バージョン 10.13.2
232
233
  ```

4

追記

2018/01/24 00:35

投稿

roronoazoro
roronoazoro

スコア113

title CHANGED
File without changes
body CHANGED
@@ -121,4 +121,112 @@
121
121
  because it is required by yarn 1.0.2, which is currently installed.
122
122
  You can override this and force removal with:
123
123
  brew uninstall --ignore-dependencies node
124
+ ```
125
+
126
+ ### 追記1/24
127
+ ```json
128
+ // シンボリックリンク
129
+ [$] ls -l /usr/local/bin/brew
130
+ lrwxr-xr-x 1 ユーザー名 admin 28 7 24 2017 /usr/local/bin/brew -> /usr/local/Homebrew/bin/brew
131
+
132
+ // brew自体の権限と所有者権限
133
+ [$] ls -l /usr/local/Homebrew/bin/brew
134
+ -rwxr-xr-x 1 ユーザー名 admin 2548 1 3 19:07 /usr/local/Homebrew/bin/brew
135
+
136
+ // brewでインストールされたものの権限と所有者情報
137
+ [$] ls -l /usr/local/bin/node
138
+ -rwxrwxr-x 1 ユーザー名 admin 35731472 10 29 16:44 /usr/local/bin/node
139
+
140
+ // 配下ディレクトリのCellerの権限と所有者情報
141
+ [$] ls -l /usr/local
142
+ total 0
143
+ drwxrwxr-x 25 ユーザー名 admin 800 11 19 10:10 Cellar
144
+ drwxrwxr-x 3 ユーザー名 admin 96 11 19 10:10 Frameworks
145
+ drwxrwxr-x 17 ユーザー名 admin 544 1 3 19:07 Homebrew
146
+ drwxrwxr-x 145 ユーザー名 admin 4640 1 22 02:15 bin
147
+ drwxrwxr-x 6 ユーザー名 admin 192 11 19 10:09 etc
148
+ drwxr-xr-x 11 root wheel 352 11 19 10:10 git
149
+ drwxrwxr-x 12 ユーザー名 admin 384 11 19 10:10 include
150
+ drwxrwxr-x 33 ユーザー名 admin 1056 11 19 10:10 lib
151
+ lrwxr-xr-x 1 root wheel 30 7 24 2017 mysql -> mysql-5.7.19-macos10.12-x86_64
152
+ drwxr-xr-x 3 root wheel 96 11 19 10:09 n
153
+ drwxrwxr-x 37 ユーザー名 admin 1184 11 19 10:10 opt
154
+ drwxr-xr-x 3 root wheel 96 11 19 10:10 remotedesktop
155
+ drwxrwxr-x 14 ユーザー名 admin 448 11 19 10:10 share
156
+ drwxr-xr-x 13 ユーザー名 staff 416 11 19 10:10 tomcat
157
+ drwxrwxr-x 5 ユーザー名 admin 160 11 19 10:10 var
158
+
159
+ // brew自体が持っているbrewの診断ツール
160
+ [$] brew doctor
161
+ Please note that these warnings are just used to help the Homebrew maintainers
162
+ with debugging if you file an issue. If everything you use Homebrew for is
163
+ working fine: please don't worry or file an issue; just ignore this. Thanks!
164
+
165
+ Warning: You have MacPorts or Fink installed:
166
+ /opt/local/bin/port
167
+
168
+ This can cause trouble. You don't have to uninstall them, but you may want to
169
+ temporarily move them out of the way, e.g.
170
+
171
+ sudo mv /opt/local ~/macports
172
+
173
+ Warning: Unbrewed header files were found in /usr/local/include.
174
+ If you didn't put them there on purpose they could cause problems when
175
+ building Homebrew formulae, and may need to be deleted.
176
+
177
+ Unexpected header files:
178
+ /usr/local/include/node/android-ifaddrs.h
179
+ /usr/local/include/node/ares.h
180
+ /usr/local/include/node/ares_build.h
181
+ /usr/local/include/node/ares_rules.h
182
+ /usr/local/include/node/ares_version.h
183
+ /usr/local/include/node/libplatform/libplatform-export.h
184
+ /usr/local/include/node/libplatform/libplatform.h
185
+ /usr/local/include/node/libplatform/v8-tracing.h
186
+ /usr/local/include/node/nameser.h
187
+ /usr/local/include/node/node.h
188
+ /usr/local/include/node/node_api.h
189
+ /usr/local/include/node/node_api_types.h
190
+ /usr/local/include/node/node_buffer.h
191
+ /usr/local/include/node/node_object_wrap.h
192
+ /usr/local/include/node/node_version.h
193
+ /usr/local/include/node/openssl/aes.h
194
+ /usr/local/include/node/openssl/archs/BSD-x86/opensslconf.h
195
+ /usr/local/include/node/openssl/archs/BSD-x86_64/opensslconf.h
196
+ /usr/local/include/node/openssl/archs/VC-WIN32/opensslconf.h
197
+ /usr/local/include/node/openssl/archs/VC-WIN64A/opensslconf.h
198
+ /usr/local/include/node/openssl/archs/aix-gcc/opensslconf.h
199
+ /usr/local/include/node/openssl/archs/aix64-gcc/opensslconf.h
200
+ /usr/local/include/node/openssl/archs/darwin-i386-cc/opensslconf.h
201
+ /usr/local/include/node/openssl/archs/darwin64-x86_64-cc/opensslconf.h
202
+ /usr/local/include/node/openssl/archs/linux-aarch64/opensslconf.h
203
+ /usr/local/include/node/openssl/archs/linux-armv4/opensslconf.h
204
+ /usr/local/include/node/openssl/archs/linux-elf/opensslconf.h
205
+ /usr/local/include/node/openssl/archs/linux-ppc/opensslconf.h
206
+ /usr/local/include/node/openssl/archs/linux-ppc64/opensslconf.h
207
+ /usr/local/include/node/openssl/archs/linux-x32/opensslconf.h
208
+ /usr/local/include/node/openssl/archs/linux-x86_64/opensslconf.h
209
+ /usr/local/include/node/openssl/archs/linux32-s390x/opensslconf.h
210
+ /usr/local/include/node/openssl/archs/linux64-s390x/opensslconf.h
211
+ /usr/local/include/node/openssl/archs/solaris-x86-gcc/opensslconf.h
212
+ /usr/local/include/node/openssl/archs/solaris64-x86_64-gcc/opensslconf.h
213
+ // ...以下文字数制限により省略
214
+
215
+ Warning: You have unlinked kegs in your Cellar
216
+ Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
217
+ those kegs to fail to run properly once built. Run `brew link` on these:
218
+ node
219
+
220
+ Warning: Broken symlinks were found. Remove them with `brew prune`:
221
+ /usr/local/bin/apm
222
+ /usr/local/bin/atom
223
+ /usr/local/bin/gulp
224
+ /usr/local/share/man/man1/gulp.1
225
+ /usr/local/share/man/man1/npx.1
226
+
227
+ // OSのビルドバージョン
228
+ [$] sw_vers
229
+ ProductName: Mac OS X
230
+ ProductVersion: 10.13.2
231
+ BuildVersion: 17C205
124
232
  ```

3

追記

2018/01/24 00:34

投稿

roronoazoro
roronoazoro

スコア113

title CHANGED
File without changes
body CHANGED
@@ -113,4 +113,12 @@
113
113
 
114
114
  node.jsアンインストールしようと下記サイトを参考にしたところ、どうやらbrewでインストールしているようでした。
115
115
  上記のように`brew list node`としnodeが確認できました。
116
- [node.jsをアンインストールしたい](https://teratail.com/questions/83489)
116
+ [node.jsをアンインストールしたい](https://teratail.com/questions/83489)
117
+
118
+ ### `brew uninstall node`のエラー文追記
119
+ ```bash
120
+ Error: Refusing to uninstall /usr/local/Cellar/node/8.5.0
121
+ because it is required by yarn 1.0.2, which is currently installed.
122
+ You can override this and force removal with:
123
+ brew uninstall --ignore-dependencies node
124
+ ```

2

追記

2018/01/23 12:06

投稿

roronoazoro
roronoazoro

スコア113

title CHANGED
File without changes
body CHANGED
@@ -96,6 +96,21 @@
96
96
  ```json
97
97
  $ which node
98
98
  /usr/local/bin/node
99
+
100
+ $ brew list node
101
+ /usr/local/Cellar/node/8.5.0/bin/node
102
+ /usr/local/Cellar/node/8.5.0/etc/bash_completion.d/npm
103
+ /usr/local/Cellar/node/8.5.0/include/node/ (136 files)
104
+ /usr/local/Cellar/node/8.5.0/lib/dtrace/node.d
105
+ /usr/local/Cellar/node/8.5.0/libexec/bin/ (2 files)
106
+ /usr/local/Cellar/node/8.5.0/libexec/lib/ (4000 files)
107
+ /usr/local/Cellar/node/8.5.0/share/doc/ (3 files)
108
+ /usr/local/Cellar/node/8.5.0/share/man/man1/node.1
109
+ /usr/local/Cellar/node/8.5.0/share/systemtap/tapset/node.stp
99
110
  ```
100
111
  一度アドバイスいただきましたやり方で再度node.jsをインストールしてみたいと思います。
101
- また、実行結果を記載いたします。
112
+ また、実行結果を記載いたします。
113
+
114
+ node.jsアンインストールしようと下記サイトを参考にしたところ、どうやらbrewでインストールしているようでした。
115
+ 上記のように`brew list node`としnodeが確認できました。
116
+ [node.jsをアンインストールしたい](https://teratail.com/questions/83489)

1

追記

2018/01/23 09:31

投稿

roronoazoro
roronoazoro

スコア113

title CHANGED
File without changes
body CHANGED
@@ -62,4 +62,40 @@
62
62
  [絶対つまずかないGulp入門。インストールからSassのコンパイルまで](https://ics.media/entry/3290)
63
63
 
64
64
  前回の質問と重複しがちですが、整理がつかなくなってしまい、再度質問とさせていただきました。
65
- よろしくお願いいたします。
65
+ よろしくお願いいたします。
66
+
67
+ ### 質問追記1/23
68
+ ```json
69
+ {
70
+ "name": "GulpSample",
71
+ "version": "1.0.0",
72
+ "description": "",
73
+ "main": "index.js",
74
+ "scripts": {
75
+ "test": "echo \"Error: no test specified\" && exit 1",
76
+ "build": "gulp" // scripts内は node_modules/.bin のディレクトリを見てくれるため、省略ができます 追記
77
+ },
78
+ "keywords": [],
79
+ "author": "",
80
+ "license": "ISC",
81
+ "devDependencies": {
82
+ "gulp": "^3.9.1",
83
+ "gulp-sass": "^3.1.0"
84
+ }
85
+ }
86
+
87
+ ```
88
+ **質問1**
89
+ > 1-2. npm run-scriptと組み合わせる
90
+ 毎回`"build": "gulp"`をpackage.jsonに追加する流れで大丈夫でしょうか?
91
+
92
+ **質問2**
93
+ インストール方法ですが、覚えていないのですが、検索してなぞってやった記憶はあります。
94
+ 下記which nodeの実行結果です。
95
+
96
+ ```json
97
+ $ which node
98
+ /usr/local/bin/node
99
+ ```
100
+ 一度アドバイスいただきましたやり方で再度node.jsをインストールしてみたいと思います。
101
+ また、実行結果を記載いたします。