Describe Your Problem:
When clicking the 1.1.0 Update Available on the Homescreen I get the prompt to update. It runs the command: npm install homebridge@latest and then kicks back an error saying my cache folder contains root-owned files and prompts me to run a command that ultimately doesn't fix the issue.
See below:
npm WARN checkPermissions Missing write access to /Users/user/.npm-packages/lib/node_modules/homebridge/node_modules/string.prototype.trimleft
npm WARN checkPermissions Missing write access to /Users/user/.npm-packages/lib/node_modules/homebridge/node_modules/es-abstract
npm WARN checkPermissions Missing write access to /Users/user/.npm-packages/lib/node_modules/homebridge/node_modules/object-is
npm WARN checkPermissions Missing write access to /Users/user/.npm-packages/lib/node_modules/homebridge/node_modules/string.prototype.trimright
npm WARN checkPermissions Missing write access to /Users/user/.npm-packages/lib/node_modules/homebridge/node_modules/deep-equal
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /Users/user/.npm-packages/lib/node_modules/homebridge/node_modules/string.prototype.trimleft
npm ERR! errno -13
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 501:20 "/Users/user/.npm"
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/user/.npm/_logs/2020-05-22T21_23_36_214Z-debug.log
Logs:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/usr/local/Cellar/node/13.6.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli 'homebridge@latest'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 4aba717d35cc43f4
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 304 https://registry.npmjs.org/homebridge 253ms (from cache)
8 http fetch GET 304 https://registry.npmjs.org/homebridge/-/homebridge-1.1.0.tgz 114ms (from cache)
9 silly pacote tag manifest for homebridge@latest fetched in 389ms
10 timing stage:loadCurrentTree Completed in 547ms
11 silly install loadIdealTree
12 silly install cloneCurrentTreeToIdealTree
13 timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
14 silly install loadShrinkwrap
15 timing stage:loadIdealTree:loadShrinkwrap Completed in 37ms
16 silly install loadAllDepsIntoIdealTree
17 silly resolveWithNewModule [email protected] checking installable status
18 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
19 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
20 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
21 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
22 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
23 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
24 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
25 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
26 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
27 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
28 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
29 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
30 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
31 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
32 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
33 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
34 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
35 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
36 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
37 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
38 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
39 silly removeObsoleteDep removing regexp.prototype.[email protected] from the tree as its been replaced by a newer version or is no longer required
40 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
41 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
42 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
43 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
44 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
45 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
46 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
47 silly removeObsoleteDep removing object.[email protected] from the tree as its been replaced by a newer version or is no longer required
48 silly removeObsoleteDep removing string.prototype.[email protected] from the tree as its been replaced by a newer version or is no longer required
49 silly removeObsoleteDep removing string.prototype.[email protected] from the tree as its been replaced by a newer version or is no longer required
50 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
51 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
52 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
53 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
54 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
55 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
56 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
57 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
58 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
59 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
60 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
61 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
62 silly removeObsoleteDep removing decimal.[email protected] from the tree as its been replaced by a newer version or is no longer required
63 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
64 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
65 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
66 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
67 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
68 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
69 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
70 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
71 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
72 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
73 http fetch GET 304 https://registry.npmjs.org/chalk 80ms (from cache)
74 http fetch GET 304 https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz 52ms (from cache)
75 silly pacote range manifest for chalk@^3.0.0 fetched in 138ms
76 silly resolveWithNewModule [email protected] checking installable status
77 http fetch GET 304 https://registry.npmjs.org/semver 142ms (from cache)
78 http fetch GET 304 https://registry.npmjs.org/source-map-support 161ms (from cache)
79 http fetch GET 304 https://registry.npmjs.org/commander 189ms (from cache)
80 http fetch GET 304 https://registry.npmjs.org/qrcode-terminal 192ms (from cache)
81 http fetch GET 304 https://registry.npmjs.org/node-persist 195ms (from cache)
82 http fetch GET 304 https://registry.npmjs.org/hap-nodejs 208ms (from cache)
83 http fetch GET 304 https://registry.npmjs.org/semver/-/semver-7.3.2.tgz 81ms (from cache)
84 silly pacote range manifest for semver@^7.3.2 fetched in 238ms
85 silly resolveWithNewModule [email protected] checking installable status
86 http fetch GET 304 https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz 76ms (from cache)
87 http fetch GET 304 https://registry.npmjs.org/commander/-/commander-5.0.0.tgz 64ms (from cache)
88 silly pacote range manifest for source-map-support@^0.5.19 fetched in 250ms
89 silly resolveWithNewModule [email protected] checking installable status
90 http fetch GET 304 https://registry.npmjs.org/node-persist/-/node-persist-0.0.11.tgz 61ms (from cache)
91 silly pacote version manifest for [email protected] fetched in 262ms
92 silly resolveWithNewModule [email protected] checking installable status
93 silly pacote range manifest for node-persist@^0.0.11 fetched in 264ms
94 silly resolveWithNewModule [email protected] checking installable status
95 http fetch GET 304 https://registry.npmjs.org/qrcode-terminal/-/qrcode-terminal-0.12.0.tgz 86ms (from cache)
96 silly pacote range manifest for qrcode-terminal@^0.12.0 fetched in 283ms
97 silly resolveWithNewModule [email protected] checking installable status
98 http fetch GET 304 https://registry.npmjs.org/hap-nodejs/-/hap-nodejs-0.7.3.tgz 111ms (from cache)
99 silly pacote range manifest for hap-nodejs@^0.7.3 fetched in 326ms
100 silly resolveWithNewModule [email protected] checking installable status
101 http fetch GET 304 https://registry.npmjs.org/ansi-styles 58ms (from cache)
102 http fetch GET 304 https://registry.npmjs.org/supports-color 80ms (from cache)
103 http fetch GET 304 https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz 60ms (from cache)
104 silly pacote range manifest for ansi-styles@^4.1.0 fetched in 122ms
105 silly resolveWithNewModule [email protected] checking installable status
106 http fetch GET 304 https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz 56ms (from cache)
107 silly pacote range manifest for supports-color@^7.1.0 fetched in 161ms
108 silly resolveWithNewModule [email protected] checking installable status
109 http fetch GET 304 https://registry.npmjs.org/color-convert 72ms (from cache)
110 http fetch GET 304 https://registry.npmjs.org/@types%2fcolor-name 79ms (from cache)
111 http fetch GET 304 https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz 61ms (from cache)
112 http fetch GET 304 https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz 57ms (from cache)
113 silly pacote range manifest for color-convert@^2.0.1 fetched in 139ms
114 silly resolveWithNewModule [email protected] checking installable status
115 silly pacote range manifest for @types/color-name@^1.1.1 fetched in 142ms
116 silly resolveWithNewModule @types/[email protected] checking installable status
117 http fetch GET 304 https://registry.npmjs.org/color-name 55ms (from cache)
118 http fetch GET 304 https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz 50ms (from cache)
119 silly pacote range manifest for color-name@~1.1.4 fetched in 110ms
120 silly resolveWithNewModule [email protected] checking installable status
121 http fetch GET 304 https://registry.npmjs.org/has-flag 55ms (from cache)
122 http fetch GET 304 https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz 51ms (from cache)
123 silly pacote range manifest for has-flag@^4.0.0 fetched in 111ms
124 silly resolveWithNewModule [email protected] checking installable status
125 http fetch GET 304 https://registry.npmjs.org/tweetnacl 81ms (from cache)
126 http fetch GET 304 https://registry.npmjs.org/debug 85ms (from cache)
127 http fetch GET 304 https://registry.npmjs.org/decimal.js 95ms (from cache)
128 http fetch GET 304 https://registry.npmjs.org/bonjour-hap 99ms (from cache)
129 http fetch GET 304 https://registry.npmjs.org/ip 98ms (from cache)
130 http fetch GET 304 https://registry.npmjs.org/fast-srp-hap 112ms (from cache)
131 http fetch GET 304 https://registry.npmjs.org/futoin-hkdf 117ms (from cache)
132 http fetch GET 304 https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz 56ms (from cache)
133 silly pacote range manifest for tweetnacl@^1.0.3 fetched in 141ms
134 silly resolveWithNewModule [email protected] checking installable status
135 http fetch GET 304 https://registry.npmjs.org/debug/-/debug-4.1.1.tgz 96ms (from cache)
136 http fetch GET 304 https://registry.npmjs.org/ip/-/ip-1.1.5.tgz 87ms (from cache)
137 http fetch GET 304 https://registry.npmjs.org/decimal.js/-/decimal.js-10.2.0.tgz 97ms (from cache)
138 http fetch GET 304 https://registry.npmjs.org/bonjour-hap/-/bonjour-hap-3.5.10.tgz 98ms (from cache)
139 http fetch GET 304 https://registry.npmjs.org/futoin-hkdf/-/futoin-hkdf-1.3.2.tgz 83ms (from cache)
140 http fetch GET 304 https://registry.npmjs.org/fast-srp-hap/-/fast-srp-hap-2.0.1.tgz 93ms (from cache)
141 silly pacote range manifest for debug@^4.1.1 fetched in 209ms
142 silly resolveWithNewModule [email protected] checking installable status
143 silly pacote range manifest for ip@^1.1.3 fetched in 210ms
144 silly resolveWithNewModule [email protected] checking installable status
145 silly pacote range manifest for decimal.js@^10.2.0 fetched in 210ms
146 silly resolveWithNewModule decimal.[email protected] checking installable status
147 silly pacote range manifest for bonjour-hap@~3.5.8 fetched in 212ms
148 silly resolveWithNewModule [email protected] checking installable status
149 silly pacote range manifest for futoin-hkdf@~1.3.2 fetched in 212ms
150 silly resolveWithNewModule [email protected] checking installable status
151 silly pacote version manifest for [email protected] fetched in 213ms
152 silly resolveWithNewModule [email protected] checking installable status
153 http fetch GET 304 https://registry.npmjs.org/deep-equal 59ms (from cache)
154 http fetch GET 304 https://registry.npmjs.org/multicast-dns 61ms (from cache)
155 http fetch GET 304 https://registry.npmjs.org/multicast-dns-service-types 68ms (from cache)
156 http fetch GET 304 https://registry.npmjs.org/array-flatten 76ms (from cache)
157 http fetch GET 304 https://registry.npmjs.org/deep-equal/-/deep-equal-2.0.3.tgz 59ms (from cache)
158 http fetch GET 304 https://registry.npmjs.org/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz 57ms (from cache)
159 silly pacote range manifest for deep-equal@^2.0.2 fetched in 128ms
160 silly resolveWithNewModule [email protected] checking installable status
161 http fetch GET 304 https://registry.npmjs.org/multicast-dns/-/multicast-dns-7.2.2.tgz 74ms (from cache)
162 silly pacote range manifest for multicast-dns-service-types@^1.1.0 fetched in 136ms
163 silly resolveWithNewModule [email protected] checking installable status
164 http fetch GET 304 https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz 64ms (from cache)
165 silly pacote range manifest for multicast-dns@^7.2.2 fetched in 140ms
166 silly resolveWithNewModule [email protected] checking installable status
167 silly pacote range manifest for array-flatten@^2.1.2 fetched in 143ms
168 silly resolveWithNewModule [email protected] checking installable status
169 http fetch GET 304 https://registry.npmjs.org/is-date-object 92ms (from cache)
170 http fetch GET 304 https://registry.npmjs.org/is-arguments 109ms (from cache)
171 http fetch GET 304 https://registry.npmjs.org/es-get-iterator 112ms (from cache)
172 http fetch GET 304 https://registry.npmjs.org/is-regex 114ms (from cache)
173 http fetch GET 304 https://registry.npmjs.org/isarray 116ms (from cache)
174 http fetch GET 304 https://registry.npmjs.org/object.assign 124ms (from cache)
175 http fetch GET 304 https://registry.npmjs.org/es-abstract 128ms (from cache)
176 http fetch GET 304 https://registry.npmjs.org/object-is 144ms (from cache)
177 http fetch GET 304 https://registry.npmjs.org/object-keys 144ms (from cache)
178 http fetch GET 304 https://registry.npmjs.org/regexp.prototype.flags 166ms (from cache)
179 http fetch GET 304 https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz 80ms (from cache)
180 http fetch GET 304 https://registry.npmjs.org/is-arguments/-/is-arguments-1.0.4.tgz 72ms (from cache)
181 silly pacote range manifest for is-date-object@^1.0.2 fetched in 200ms
182 silly resolveWithNewModule [email protected] checking installable status
183 http fetch GET 304 https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.0.tgz 97ms (from cache)
184 http fetch GET 304 https://registry.npmjs.org/is-regex/-/is-regex-1.0.5.tgz 95ms (from cache)
185 silly pacote range manifest for is-arguments@^1.0.4 fetched in 212ms
186 silly resolveWithNewModule [email protected] checking installable status
187 http fetch GET 304 https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz 104ms (from cache)
188 http fetch GET 304 https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz 102ms (from cache)
189 http fetch GET 304 https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.5.tgz 141ms (from cache)
190 http fetch GET 304 https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz 127ms (from cache)
191 silly pacote range manifest for es-get-iterator@^1.1.0 fetched in 276ms
192 silly resolveWithNewModule [email protected] checking installable status
193 http fetch GET 304 https://registry.npmjs.org/object-is/-/object-is-1.1.2.tgz 132ms (from cache)
194 silly pacote range manifest for is-regex@^1.0.5 fetched in 278ms
195 silly resolveWithNewModule [email protected] checking installable status
196 silly pacote range manifest for isarray@^2.0.5 fetched in 292ms
197 silly resolveWithNewModule [email protected] checking installable status
198 silly pacote range manifest for object.assign@^4.1.0 fetched in 294ms
199 silly resolveWithNewModule object.[email protected] checking installable status
200 silly pacote range manifest for es-abstract@^1.17.5 fetched in 298ms
201 silly resolveWithNewModule [email protected] checking installable status
202 silly pacote range manifest for object-is@^1.1.2 fetched in 297ms
203 silly resolveWithNewModule [email protected] checking installable status
204 silly pacote range manifest for object-keys@^1.1.1 fetched in 298ms
205 silly resolveWithNewModule [email protected] checking installable status
206 http fetch GET 304 https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.3.0.tgz 132ms (from cache)
207 http fetch GET 304 https://registry.npmjs.org/side-channel 97ms (from cache)
208 http fetch GET 304 https://registry.npmjs.org/which-boxed-primitive 91ms (from cache)
209 silly pacote range manifest for regexp.prototype.flags@^1.3.0 fetched in 308ms
210 silly resolveWithNewModule regexp.prototype.[email protected] checking installable status
211 http fetch GET 304 https://registry.npmjs.org/which-collection 61ms (from cache)
212 http fetch GET 304 https://registry.npmjs.org/which-typed-array 105ms (from cache)
213 http fetch GET 304 https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.1.tgz 83ms (from cache)
214 http fetch GET 304 https://registry.npmjs.org/side-channel/-/side-channel-1.0.2.tgz 105ms (from cache)
215 silly pacote range manifest for which-boxed-primitive@^1.0.1 fetched in 198ms
216 silly resolveWithNewModule [email protected] checking installable status
217 http fetch GET 304 https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz 77ms (from cache)
218 silly pacote range manifest for side-channel@^1.0.2 fetched in 211ms
219 silly resolveWithNewModule [email protected] checking installable status
220 silly pacote range manifest for which-collection@^1.0.1 fetched in 142ms
221 silly resolveWithNewModule [email protected] checking installable status
222 http fetch GET 304 https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.2.tgz 57ms (from cache)
223 silly pacote range manifest for which-typed-array@^1.1.2 fetched in 172ms
224 silly resolveWithNewModule [email protected] checking installable status
225 http fetch GET 304 https://registry.npmjs.org/es-to-primitive 46ms (from cache)
226 http fetch GET 304 https://registry.npmjs.org/has 74ms (from cache)
227 http fetch GET 304 https://registry.npmjs.org/has-symbols 76ms (from cache)
228 http fetch GET 304 https://registry.npmjs.org/object-inspect 78ms (from cache)
229 http fetch GET 304 https://registry.npmjs.org/is-callable 79ms (from cache)
230 http fetch GET 304 https://registry.npmjs.org/string.prototype.trimleft 89ms (from cache)
231 http fetch GET 304 https://registry.npmjs.org/string.prototype.trimright 91ms (from cache)
232 http fetch GET 304 https://registry.npmjs.org/function-bind 99ms (from cache)
233 http fetch GET 304 https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz 57ms (from cache)
234 silly pacote range manifest for es-to-primitive@^1.2.1 fetched in 107ms
235 silly resolveWithNewModule [email protected] checking installable status
236 http fetch GET 304 https://registry.npmjs.org/has/-/has-1.0.3.tgz 59ms (from cache)
237 http fetch GET 304 https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz 61ms (from cache)
238 silly pacote range manifest for has@^1.0.3 fetched in 153ms
239 silly resolveWithNewModule [email protected] checking installable status
240 silly pacote range manifest for has-symbols@^1.0.1 fetched in 155ms
241 silly resolveWithNewModule [email protected] checking installable status
242 http fetch GET 304 https://registry.npmjs.org/object-inspect/-/object-inspect-1.7.0.tgz 77ms (from cache)
243 http fetch GET 304 https://registry.npmjs.org/is-callable/-/is-callable-1.1.5.tgz 80ms (from cache)
244 http fetch GET 304 https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.2.tgz 73ms (from cache)
245 silly pacote range manifest for object-inspect@^1.7.0 fetched in 166ms
246 silly resolveWithNewModule [email protected] checking installable status
247 http fetch GET 304 https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.2.tgz 76ms (from cache)
248 http fetch GET 304 https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz 71ms (from cache)
249 silly pacote range manifest for is-callable@^1.1.5 fetched in 171ms
250 silly resolveWithNewModule [email protected] checking installable status
251 silly pacote range manifest for string.prototype.trimleft@^2.1.1 fetched in 171ms
252 silly resolveWithNewModule string.prototype.[email protected] checking installable status
253 silly pacote range manifest for string.prototype.trimright@^2.1.1 fetched in 173ms
254 silly resolveWithNewModule string.prototype.[email protected] checking installable status
255 silly pacote range manifest for function-bind@^1.1.1 fetched in 176ms
256 silly resolveWithNewModule [email protected] checking installable status
257 http fetch GET 304 https://registry.npmjs.org/is-symbol 54ms (from cache)
258 http fetch GET 304 https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz 41ms (from cache)
259 silly pacote range manifest for is-symbol@^1.0.2 fetched in 99ms
260 silly resolveWithNewModule [email protected] checking installable status
261 http fetch GET 304 https://registry.npmjs.org/define-properties 50ms (from cache)
262 http fetch GET 304 https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz 43ms (from cache)
263 silly pacote range manifest for define-properties@^1.1.2 fetched in 97ms
264 silly resolveWithNewModule [email protected] checking installable status
265 http fetch GET 304 https://registry.npmjs.org/string.prototype.trimstart 47ms (from cache)
266 http fetch GET 304 https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.1.tgz 49ms (from cache)
267 silly pacote range manifest for string.prototype.trimstart@^1.0.0 fetched in 99ms
268 silly resolveWithNewModule string.prototype.[email protected] checking installable status
269 http fetch GET 304 https://registry.npmjs.org/string.prototype.trimend 57ms (from cache)
270 http fetch GET 304 https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.1.tgz 67ms (from cache)
271 silly pacote range manifest for string.prototype.trimend@^1.0.0 fetched in 126ms
272 silly resolveWithNewModule string.prototype.[email protected] checking installable status
273 http fetch GET 304 https://registry.npmjs.org/is-string 61ms (from cache)
274 http fetch GET 304 https://registry.npmjs.org/is-map 63ms (from cache)
275 http fetch GET 304 https://registry.npmjs.org/is-set 74ms (from cache)
276 http fetch GET 304 https://registry.npmjs.org/is-string/-/is-string-1.0.5.tgz 56ms (from cache)
277 http fetch GET 304 https://registry.npmjs.org/is-set/-/is-set-2.0.1.tgz 44ms (from cache)
278 silly pacote range manifest for is-string@^1.0.5 fetched in 123ms
279 silly resolveWithNewModule [email protected] checking installable status
280 silly pacote range manifest for is-set@^2.0.1 fetched in 124ms
281 silly resolveWithNewModule [email protected] checking installable status
282 http fetch GET 304 https://registry.npmjs.org/is-map/-/is-map-2.0.1.tgz 61ms (from cache)
283 silly pacote range manifest for is-map@^2.0.1 fetched in 127ms
284 silly resolveWithNewModule [email protected] checking installable status
285 http fetch GET 304 https://registry.npmjs.org/is-bigint 37ms (from cache)
286 http fetch GET 304 https://registry.npmjs.org/is-boolean-object 50ms (from cache)
287 http fetch GET 304 https://registry.npmjs.org/is-number-object 91ms (from cache)
288 http fetch GET 304 https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.0.tgz 59ms (from cache)
289 silly pacote range manifest for is-bigint@^1.0.0 fetched in 100ms
290 silly resolveWithNewModule [email protected] checking installable status
291 http fetch GET 304 https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.0.1.tgz 61ms (from cache)
292 silly pacote range manifest for is-boolean-object@^1.0.0 fetched in 115ms
293 silly resolveWithNewModule [email protected] checking installable status
294 http fetch GET 304 https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.4.tgz 48ms (from cache)
295 silly pacote range manifest for is-number-object@^1.0.3 fetched in 141ms
296 silly resolveWithNewModule [email protected] checking installable status
297 http fetch GET 304 https://registry.npmjs.org/is-weakset 39ms (from cache)
298 http fetch GET 304 https://registry.npmjs.org/is-weakmap 49ms (from cache)
299 http fetch GET 304 https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.1.tgz 40ms (from cache)
300 silly pacote range manifest for is-weakset@^2.0.1 fetched in 83ms
301 silly resolveWithNewModule [email protected] checking installable status
302 http fetch GET 304 https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz 68ms (from cache)
303 silly pacote range manifest for is-weakmap@^2.0.1 fetched in 120ms
304 silly resolveWithNewModule [email protected] checking installable status
305 http fetch GET 304 https://registry.npmjs.org/available-typed-arrays 46ms (from cache)
306 http fetch GET 304 https://registry.npmjs.org/foreach 52ms (from cache)
307 http fetch GET 304 https://registry.npmjs.org/is-typed-array 61ms (from cache)
308 http fetch GET 304 https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz 46ms (from cache)
309 silly pacote range manifest for foreach@^2.0.5 fetched in 103ms
310 silly resolveWithNewModule [email protected] checking installable status
311 http fetch GET 304 https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.2.tgz 60ms (from cache)
312 silly pacote range manifest for available-typed-arrays@^1.0.2 fetched in 110ms
313 silly resolveWithNewModule [email protected] checking installable status
314 http fetch GET 304 https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.3.tgz 54ms (from cache)
315 silly pacote range manifest for is-typed-array@^1.1.3 fetched in 119ms
316 silly resolveWithNewModule [email protected] checking installable status
317 http fetch GET 304 https://registry.npmjs.org/array-filter 43ms (from cache)
318 http fetch GET 304 https://registry.npmjs.org/array-filter/-/array-filter-1.0.0.tgz 53ms (from cache)
319 silly pacote range manifest for array-filter@^1.0.0 fetched in 99ms
320 silly resolveWithNewModule [email protected] checking installable status
321 http fetch GET 304 https://registry.npmjs.org/thunky 58ms (from cache)
322 http fetch GET 304 https://registry.npmjs.org/dns-packet 62ms (from cache)
323 http fetch GET 304 https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz 41ms (from cache)
324 silly pacote range manifest for thunky@^1.0.2 fetched in 102ms
325 silly resolveWithNewModule [email protected] checking installable status
326 http fetch GET 304 https://registry.npmjs.org/dns-packet/-/dns-packet-4.2.0.tgz 48ms (from cache)
327 silly pacote range manifest for dns-packet@^4.0.0 fetched in 114ms
328 silly resolveWithNewModule [email protected] checking installable status
329 http fetch GET 304 https://registry.npmjs.org/safe-buffer 67ms (from cache)
330 http fetch GET 304 https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz 55ms (from cache)
331 silly pacote range manifest for safe-buffer@^5.1.1 fetched in 127ms
332 silly resolveWithNewModule [email protected] checking installable status
333 http fetch GET 304 https://registry.npmjs.org/ms 54ms (from cache)
334 http fetch GET 304 https://registry.npmjs.org/ms/-/ms-2.1.2.tgz 50ms (from cache)
335 silly pacote range manifest for ms@^2.1.1 fetched in 108ms
336 silly resolveWithNewModule [email protected] checking installable status
337 http fetch GET 304 https://registry.npmjs.org/mkdirp 44ms (from cache)
338 http fetch GET 304 https://registry.npmjs.org/q 54ms (from cache)
339 http fetch GET 304 https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz 55ms (from cache)
340 silly pacote range manifest for mkdirp@~0.5.1 fetched in 102ms
341 silly resolveWithNewModule [email protected] checking installable status
342 http fetch GET 304 https://registry.npmjs.org/q/-/q-1.1.2.tgz 61ms (from cache)
343 silly pacote range manifest for q@~1.1.1 fetched in 119ms
344 silly resolveWithNewModule [email protected] checking installable status
345 http fetch GET 304 https://registry.npmjs.org/minimist 42ms (from cache)
346 http fetch GET 304 https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz 60ms (from cache)
347 silly pacote range manifest for minimist@^1.2.5 fetched in 106ms
348 silly resolveWithNewModule [email protected] checking installable status
349 http fetch GET 304 https://registry.npmjs.org/source-map 54ms (from cache)
350 http fetch GET 304 https://registry.npmjs.org/buffer-from 59ms (from cache)
351 http fetch GET 304 https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz 50ms (from cache)
352 http fetch GET 304 https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz 59ms (from cache)
353 silly pacote range manifest for source-map@^0.6.0 fetched in 118ms
354 silly resolveWithNewModule [email protected] checking installable status
355 silly pacote range manifest for buffer-from@^1.0.0 fetched in 118ms
356 silly resolveWithNewModule [email protected] checking installable status
357 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 3679ms
358 timing stage:loadIdealTree Completed in 3762ms
359 silly currentTree lib
359 silly currentTree -- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree |-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree | -- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree +-- [email protected]
359 silly currentTree-- [email protected]
360 silly idealTree lib
360 silly idealTree -- [email protected]
360 silly idealTree +-- @types/[email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree +-- [email protected]
360 silly idealTree-- [email protected]
361 silly install generateActionsToTake
362 warn checkPermissions Missing write access to /Users/user/.npm-packages/lib/node_modules/homebridge/node_modules/string.prototype.trimleft
363 warn checkPermissions Missing write access to /Users/user/.npm-packages/lib/node_modules/homebridge/node_modules/es-abstract
364 warn checkPermissions Missing write access to /Users/user/.npm-packages/lib/node_modules/homebridge/node_modules/object-is
365 warn checkPermissions Missing write access to /Users/user/.npm-packages/lib/node_modules/homebridge/node_modules/string.prototype.trimright
366 warn checkPermissions Missing write access to /Users/user/.npm-packages/lib/node_modules/homebridge/node_modules/deep-equal
367 timing stage:rollbackFailedOptional Completed in 0ms
368 timing stage:runTopLevelLifecycles Completed in 4327ms
369 verbose stack Error: EACCES: permission denied, access '/Users/user/.npm-packages/lib/node_modules/homebridge/node_modules/string.prototype.trimleft'
370 verbose cwd /Users/user/.npm-packages/lib
371 verbose Darwin 19.4.0
372 verbose argv "/usr/local/Cellar/node/13.6.0/bin/node" "/usr/local/bin/npm" "install" "homebridge@latest"
373 verbose node v13.6.0
374 verbose npm v6.13.4
375 error code EACCES
376 error syscall access
377 error path /Users/user/.npm-packages/lib/node_modules/homebridge/node_modules/string.prototype.trimleft
378 error errno -13
379 verbose Error: EACCES: permission denied, access '/Users/user/.npm-packages/lib/node_modules/homebridge/node_modules/string.prototype.trimleft'
380 error Your cache folder contains root-owned files, due to a bug in
380 error previous versions of npm which has since been addressed.
380 error
380 error To permanently fix this problem, please run:
380 error sudo chown -R 501:20 "/Users/user/.npm"
381 verbose exit [ -13, true ]
Show the Homebridge / Homebridge Config UI X logs here.
Homebridge Config:
{
"bridge": {
"name": "Bridge",
"username": "USERNAME",
"port": 51827,
"pin": "PIN
},
"description": "This is an example configuration file with all supported devices. You can use this as a template for creating your own configuration file containing devices you actually own.",
"platforms": [
{
"name": "Config",
"port": 8080,
"auth": "form",
"theme": "dark-mode",
"tempUnits": "f",
"lang": "auto",
"platform": "config"
},
{
"name": "Apple TV Platform",
"devices": [
{
"name": "Bedroom Apple TV",
"credentials": "API",
"isOnOffSwitchEnabled": true,
"onOffSwitchName": "On / Off"
},
{
"name": "Living Room Apple TV",
"credentials": "API",
"isOnOffSwitchEnabled": true,
"onOffSwitchName": "On/Off"
}
],
"platform": "AppleTvPlatform"
}
],
"accessories": [
{
"accessory": "DummySwitch",
"name": "LockTrigger"
},
{
"name": "Away Mode",
"sensors": [
{
"name": "LivingRoomAwaySensor",
"minOffTime": 1200,
"maxOffTime": 2400,
"minOnTime": 1800,
"maxOnTime": 6000
},
{
"name": "BedroomAwaySensor",
"minOffTime": 2400,
"maxOffTime": 4800,
"minOnTime": 300,
"maxOnTime": 3600
},
{
"name": "OfficeAwaySensor",
"minOffTime": 1200,
"maxOffTime": 2400,
"minOnTime": 600,
"maxOnTime": 4800
},
{
"name": "AnsonAwaySensor",
"minOffTime": 1200,
"maxOffTime": 2400,
"minOnTime": 300,
"maxOnTime": 1200
}
],
"minOffTime": 1200,
"maxOffTime": 2400,
"minOnTime": 1800,
"maxOnTime": 3600,
"accessory": "AwayMode"
},
{
"accessory": "Notification",
"name": "Away Mode On",
"ifttt_api_key": "API KEY",
"ifttt_event": "away_mode_on",
"ifttt_message": "Security System Activated at {{OccurredAt}}.",
"ifttt_mute_notification_interval_in_sec": 1
},
{
"accessory": "Notification",
"name": "Away Mode Off",
"ifttt_api_key": "API KEY",
"ifttt_event": "away_mode_off",
"ifttt_message": "Security System Activated at {{OccurredAt}}.",
"ifttt_mute_notification_interval_in_sec": 1
},
{
"accessory": "StatefulDummySwitch",
"name": "Conditional"
},
{
"accessory": "StatefulDummySwitch",
"name": "Night"
},
{
"accessory": "StatefulDummySwitch",
"name": "Door Lock"
},
{
"name": "Kids Rest",
"macAddress": "MAC",
"volume": 0,
"audioTrack": 0,
"color": {
"r": 0,
"g": 0,
"b": 254,
"a": 255
},
"accessory": "HatchBabyRest"
},
{
"name": "Xbox One",
"liveid": "CODE",
"consoleip": "10.0.1.10",
"accessory": "Smartglass"
}
]
}
Screenshots:

"
Environment:
Try:
sudo chown -R ronbush: /Users/ronbush/.npm-packages /Users/ronbush/.npm
Eureka! That fixed it! Thanks!
Great!
Most helpful comment
Eureka! That fixed it! Thanks!