0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', 1 verbose cli '/usr/local/bin/npm', 1 verbose cli 'i', 1 verbose cli '-g', 1 verbose cli 'homebridge-gpio-motion-sensor' ] 2 info using npm@6.9.0 3 info using node@v11.5.0 4 verbose npm-session a0d3c48b973bff77 5 silly install loadCurrentTree 6 silly install readGlobalPackageData 7 http fetch GET 304 https://registry.npmjs.org/homebridge-gpio-motion-sensor 437ms (from cache) 8 silly pacote tag manifest for homebridge-gpio-motion-sensor@latest fetched in 493ms 9 timing stage:loadCurrentTree Completed in 584ms 10 silly install loadIdealTree 11 silly install cloneCurrentTreeToIdealTree 12 timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms 13 silly install loadShrinkwrap 14 timing stage:loadIdealTree:loadShrinkwrap Completed in 9ms 15 silly install loadAllDepsIntoIdealTree 16 silly resolveWithNewModule homebridge-gpio-motion-sensor@0.0.3 checking installable status 17 http fetch GET 304 https://registry.npmjs.org/rpi-gpio 136ms (from cache) 18 silly pacote range manifest for rpi-gpio@^0.9.1 fetched in 180ms 19 silly resolveWithNewModule rpi-gpio@0.9.1 checking installable status 20 http fetch GET 304 https://registry.npmjs.org/epoll 143ms (from cache) 21 silly pacote range manifest for epoll@0.1.x fetched in 161ms 22 silly resolveWithNewModule epoll@0.1.22 checking installable status 23 http fetch GET 304 https://registry.npmjs.org/promise 256ms (from cache) 24 silly pacote version manifest for promise@7.1.1 fetched in 268ms 25 silly resolveWithNewModule promise@7.1.1 checking installable status 26 http fetch GET 304 https://registry.npmjs.org/async 298ms (from cache) 27 silly pacote range manifest for async@1.x fetched in 329ms 28 silly resolveWithNewModule async@1.5.2 checking installable status 29 http fetch GET 304 https://registry.npmjs.org/debug 325ms (from cache) 30 silly pacote range manifest for debug@2.x fetched in 343ms 31 silly resolveWithNewModule debug@2.6.9 checking installable status 32 http fetch GET 304 https://registry.npmjs.org/ms 69ms (from cache) 33 silly pacote version manifest for ms@2.0.0 fetched in 75ms 34 silly resolveWithNewModule ms@2.0.0 checking installable status 35 http fetch GET 304 https://registry.npmjs.org/bindings 146ms (from cache) 36 silly pacote range manifest for bindings@~1.2.1 fetched in 156ms 37 silly resolveWithNewModule bindings@1.2.1 checking installable status 38 http fetch GET 304 https://registry.npmjs.org/nan 157ms (from cache) 39 silly pacote range manifest for nan@~2.6.2 fetched in 170ms 40 silly resolveWithNewModule nan@2.6.2 checking installable status 41 http fetch GET 304 https://registry.npmjs.org/asap 99ms (from cache) 42 silly pacote range manifest for asap@~2.0.3 fetched in 106ms 43 silly resolveWithNewModule asap@2.0.6 checking installable status 44 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 963ms 45 timing stage:loadIdealTree Completed in 996ms 46 silly currentTree lib 47 silly idealTree lib 47 silly idealTree └─┬ homebridge-gpio-motion-sensor@0.0.3 47 silly idealTree ├── asap@2.0.6 47 silly idealTree ├── async@1.5.2 47 silly idealTree ├── bindings@1.2.1 47 silly idealTree ├── debug@2.6.9 47 silly idealTree ├── epoll@0.1.22 47 silly idealTree ├── ms@2.0.0 47 silly idealTree ├── nan@2.6.2 47 silly idealTree ├── promise@7.1.1 47 silly idealTree └── rpi-gpio@0.9.1 48 silly install generateActionsToTake 49 timing stage:generateActionsToTake Completed in 33ms 50 silly diffTrees action count 10 51 silly diffTrees add asap@2.0.6 52 silly diffTrees add async@1.5.2 53 silly diffTrees add bindings@1.2.1 54 silly diffTrees add ms@2.0.0 55 silly diffTrees add debug@2.6.9 56 silly diffTrees add nan@2.6.2 57 silly diffTrees add epoll@0.1.22 58 silly diffTrees add promise@7.1.1 59 silly diffTrees add rpi-gpio@0.9.1 60 silly diffTrees add homebridge-gpio-motion-sensor@0.0.3 61 silly decomposeActions action count 80 62 silly decomposeActions fetch asap@2.0.6 63 silly decomposeActions extract asap@2.0.6 64 silly decomposeActions preinstall asap@2.0.6 65 silly decomposeActions build asap@2.0.6 66 silly decomposeActions install asap@2.0.6 67 silly decomposeActions postinstall asap@2.0.6 68 silly decomposeActions finalize asap@2.0.6 69 silly decomposeActions refresh-package-json asap@2.0.6 70 silly decomposeActions fetch async@1.5.2 71 silly decomposeActions extract async@1.5.2 72 silly decomposeActions preinstall async@1.5.2 73 silly decomposeActions build async@1.5.2 74 silly decomposeActions install async@1.5.2 75 silly decomposeActions postinstall async@1.5.2 76 silly decomposeActions finalize async@1.5.2 77 silly decomposeActions refresh-package-json async@1.5.2 78 silly decomposeActions fetch bindings@1.2.1 79 silly decomposeActions extract bindings@1.2.1 80 silly decomposeActions preinstall bindings@1.2.1 81 silly decomposeActions build bindings@1.2.1 82 silly decomposeActions install bindings@1.2.1 83 silly decomposeActions postinstall bindings@1.2.1 84 silly decomposeActions finalize bindings@1.2.1 85 silly decomposeActions refresh-package-json bindings@1.2.1 86 silly decomposeActions fetch ms@2.0.0 87 silly decomposeActions extract ms@2.0.0 88 silly decomposeActions preinstall ms@2.0.0 89 silly decomposeActions build ms@2.0.0 90 silly decomposeActions install ms@2.0.0 91 silly decomposeActions postinstall ms@2.0.0 92 silly decomposeActions finalize ms@2.0.0 93 silly decomposeActions refresh-package-json ms@2.0.0 94 silly decomposeActions fetch debug@2.6.9 95 silly decomposeActions extract debug@2.6.9 96 silly decomposeActions preinstall debug@2.6.9 97 silly decomposeActions build debug@2.6.9 98 silly decomposeActions install debug@2.6.9 99 silly decomposeActions postinstall debug@2.6.9 100 silly decomposeActions finalize debug@2.6.9 101 silly decomposeActions refresh-package-json debug@2.6.9 102 silly decomposeActions fetch nan@2.6.2 103 silly decomposeActions extract nan@2.6.2 104 silly decomposeActions preinstall nan@2.6.2 105 silly decomposeActions build nan@2.6.2 106 silly decomposeActions install nan@2.6.2 107 silly decomposeActions postinstall nan@2.6.2 108 silly decomposeActions finalize nan@2.6.2 109 silly decomposeActions refresh-package-json nan@2.6.2 110 silly decomposeActions fetch epoll@0.1.22 111 silly decomposeActions extract epoll@0.1.22 112 silly decomposeActions preinstall epoll@0.1.22 113 silly decomposeActions build epoll@0.1.22 114 silly decomposeActions install epoll@0.1.22 115 silly decomposeActions postinstall epoll@0.1.22 116 silly decomposeActions finalize epoll@0.1.22 117 silly decomposeActions refresh-package-json epoll@0.1.22 118 silly decomposeActions fetch promise@7.1.1 119 silly decomposeActions extract promise@7.1.1 120 silly decomposeActions preinstall promise@7.1.1 121 silly decomposeActions build promise@7.1.1 122 silly decomposeActions install promise@7.1.1 123 silly decomposeActions postinstall promise@7.1.1 124 silly decomposeActions finalize promise@7.1.1 125 silly decomposeActions refresh-package-json promise@7.1.1 126 silly decomposeActions fetch rpi-gpio@0.9.1 127 silly decomposeActions extract rpi-gpio@0.9.1 128 silly decomposeActions preinstall rpi-gpio@0.9.1 129 silly decomposeActions build rpi-gpio@0.9.1 130 silly decomposeActions install rpi-gpio@0.9.1 131 silly decomposeActions postinstall rpi-gpio@0.9.1 132 silly decomposeActions finalize rpi-gpio@0.9.1 133 silly decomposeActions refresh-package-json rpi-gpio@0.9.1 134 silly decomposeActions fetch homebridge-gpio-motion-sensor@0.0.3 135 silly decomposeActions extract homebridge-gpio-motion-sensor@0.0.3 136 silly decomposeActions preinstall homebridge-gpio-motion-sensor@0.0.3 137 silly decomposeActions build homebridge-gpio-motion-sensor@0.0.3 138 silly decomposeActions install homebridge-gpio-motion-sensor@0.0.3 139 silly decomposeActions postinstall homebridge-gpio-motion-sensor@0.0.3 140 silly decomposeActions finalize homebridge-gpio-motion-sensor@0.0.3 141 silly decomposeActions refresh-package-json homebridge-gpio-motion-sensor@0.0.3 142 silly install executeActions 143 silly doSerial global-install 80 144 verbose correctMkdir /root/.npm/_locks correctMkdir not in flight; initializing 145 verbose lock using /root/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging 146 silly doParallel extract 10 147 silly extract asap@2.0.6 148 silly extract async@1.5.2 149 silly extract bindings@1.2.1 150 silly extract ms@2.0.0 151 silly extract debug@2.6.9 152 silly extract nan@2.6.2 153 silly extract epoll@0.1.22 154 silly extract promise@7.1.1 155 silly extract rpi-gpio@0.9.1 156 silly extract homebridge-gpio-motion-sensor@0.0.3 157 silly tarball trying asap@~2.0.3 by hash: sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY= 158 silly tarball trying async@1.x by hash: sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo= 159 silly tarball trying bindings@~1.2.1 by hash: sha1-FK1hE4EtLTfXLme0ystLtyZQXxE= 160 silly tarball trying ms@2.0.0 by hash: sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= 161 silly tarball trying debug@2.x by hash: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== 162 silly tarball trying nan@~2.6.2 by hash: sha1-5P805slf37WuzAjeZZb0NgWn20U= 163 silly tarball trying epoll@0.1.x by hash: sha1-GrmmN8/xGiCXDIiLHKIXi2TPUpE= 164 silly tarball trying promise@7.1.1 by hash: sha1-SJZUxpJha4qlWwck+oCbt9tJxb8= 165 silly tarball trying rpi-gpio@^0.9.1 by hash: sha1-EIUCwDFYSwavF+29x/I/cK3pado= 166 silly tarball trying homebridge-gpio-motion-sensor@latest by hash: sha1-EN2dAoNJKLeBokhzWS6fKwi3dGQ= 167 silly extract bindings@~1.2.1 extracted to /usr/local/lib/node_modules/.staging/bindings-b9a4818b (421ms) 168 silly extract ms@2.0.0 extracted to /usr/local/lib/node_modules/.staging/ms-1261162b (429ms) 169 silly extract asap@~2.0.3 extracted to /usr/local/lib/node_modules/.staging/asap-d41d043f (461ms) 170 silly extract rpi-gpio@^0.9.1 extracted to /usr/local/lib/node_modules/.staging/rpi-gpio-945447d4 (475ms) 171 silly extract debug@2.x extracted to /usr/local/lib/node_modules/.staging/debug-d27acd3a (493ms) 172 silly extract async@1.x extracted to /usr/local/lib/node_modules/.staging/async-27007343 (503ms) 173 silly extract homebridge-gpio-motion-sensor@latest extracted to /usr/local/lib/node_modules/.staging/homebridge-gpio-motion-sensor-d209dfdc (491ms) 174 silly extract epoll@0.1.x extracted to /usr/local/lib/node_modules/.staging/epoll-00ebe56c (531ms) 175 silly extract promise@7.1.1 extracted to /usr/local/lib/node_modules/.staging/promise-6f971812 (545ms) 176 silly extract nan@~2.6.2 extracted to /usr/local/lib/node_modules/.staging/nan-730fb266 (564ms) 177 timing action:extract Completed in 588ms 178 silly doReverseSerial unbuild 80 179 silly doSerial remove 80 180 silly doSerial move 80 181 silly doSerial finalize 80 182 silly finalize /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/asap 183 silly finalize /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/async 184 silly finalize /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/bindings 185 silly finalize /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/ms 186 silly finalize /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/debug 187 silly finalize /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/nan 188 silly finalize /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/epoll 189 silly finalize /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/promise 190 silly finalize /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/rpi-gpio 191 silly finalize /usr/local/lib/node_modules/homebridge-gpio-motion-sensor 192 timing action:finalize Completed in 158ms 193 silly doParallel refresh-package-json 10 194 silly refresh-package-json /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/asap 195 silly refresh-package-json /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/async 196 silly refresh-package-json /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/bindings 197 silly refresh-package-json /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/ms 198 silly refresh-package-json /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/debug 199 silly refresh-package-json /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/nan 200 silly refresh-package-json /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/epoll 201 silly refresh-package-json /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/promise 202 silly refresh-package-json /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/rpi-gpio 203 silly refresh-package-json /usr/local/lib/node_modules/homebridge-gpio-motion-sensor 204 timing action:refresh-package-json Completed in 189ms 205 silly doParallel preinstall 10 206 silly preinstall asap@2.0.6 207 info lifecycle asap@2.0.6~preinstall: asap@2.0.6 208 silly preinstall async@1.5.2 209 info lifecycle async@1.5.2~preinstall: async@1.5.2 210 silly preinstall bindings@1.2.1 211 info lifecycle bindings@1.2.1~preinstall: bindings@1.2.1 212 silly preinstall ms@2.0.0 213 info lifecycle ms@2.0.0~preinstall: ms@2.0.0 214 silly preinstall debug@2.6.9 215 info lifecycle debug@2.6.9~preinstall: debug@2.6.9 216 silly preinstall nan@2.6.2 217 info lifecycle nan@2.6.2~preinstall: nan@2.6.2 218 silly preinstall epoll@0.1.22 219 info lifecycle epoll@0.1.22~preinstall: epoll@0.1.22 220 silly preinstall promise@7.1.1 221 info lifecycle promise@7.1.1~preinstall: promise@7.1.1 222 silly preinstall rpi-gpio@0.9.1 223 info lifecycle rpi-gpio@0.9.1~preinstall: rpi-gpio@0.9.1 224 silly preinstall homebridge-gpio-motion-sensor@0.0.3 225 info lifecycle homebridge-gpio-motion-sensor@0.0.3~preinstall: homebridge-gpio-motion-sensor@0.0.3 226 timing action:preinstall Completed in 14ms 227 silly doSerial build 80 228 silly build asap@2.0.6 229 info linkStuff asap@2.0.6 230 silly linkStuff asap@2.0.6 has /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules as its parent node_modules 231 silly linkStuff asap@2.0.6 is part of a global install 232 silly linkStuff asap@2.0.6 is installed into a global node_modules 233 silly build async@1.5.2 234 info linkStuff async@1.5.2 235 silly linkStuff async@1.5.2 has /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules as its parent node_modules 236 silly linkStuff async@1.5.2 is part of a global install 237 silly linkStuff async@1.5.2 is installed into a global node_modules 238 silly build bindings@1.2.1 239 info linkStuff bindings@1.2.1 240 silly linkStuff bindings@1.2.1 has /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules as its parent node_modules 241 silly linkStuff bindings@1.2.1 is part of a global install 242 silly linkStuff bindings@1.2.1 is installed into a global node_modules 243 silly build ms@2.0.0 244 info linkStuff ms@2.0.0 245 silly linkStuff ms@2.0.0 has /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules as its parent node_modules 246 silly linkStuff ms@2.0.0 is part of a global install 247 silly linkStuff ms@2.0.0 is installed into a global node_modules 248 silly build debug@2.6.9 249 info linkStuff debug@2.6.9 250 silly linkStuff debug@2.6.9 has /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules as its parent node_modules 251 silly linkStuff debug@2.6.9 is part of a global install 252 silly linkStuff debug@2.6.9 is installed into a global node_modules 253 silly build nan@2.6.2 254 info linkStuff nan@2.6.2 255 silly linkStuff nan@2.6.2 has /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules as its parent node_modules 256 silly linkStuff nan@2.6.2 is part of a global install 257 silly linkStuff nan@2.6.2 is installed into a global node_modules 258 silly build epoll@0.1.22 259 info linkStuff epoll@0.1.22 260 silly linkStuff epoll@0.1.22 has /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules as its parent node_modules 261 silly linkStuff epoll@0.1.22 is part of a global install 262 silly linkStuff epoll@0.1.22 is installed into a global node_modules 263 silly build promise@7.1.1 264 info linkStuff promise@7.1.1 265 silly linkStuff promise@7.1.1 has /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules as its parent node_modules 266 silly linkStuff promise@7.1.1 is part of a global install 267 silly linkStuff promise@7.1.1 is installed into a global node_modules 268 silly build rpi-gpio@0.9.1 269 info linkStuff rpi-gpio@0.9.1 270 silly linkStuff rpi-gpio@0.9.1 has /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules as its parent node_modules 271 silly linkStuff rpi-gpio@0.9.1 is part of a global install 272 silly linkStuff rpi-gpio@0.9.1 is installed into a global node_modules 273 silly build homebridge-gpio-motion-sensor@0.0.3 274 info linkStuff homebridge-gpio-motion-sensor@0.0.3 275 silly linkStuff homebridge-gpio-motion-sensor@0.0.3 has /usr/local/lib/node_modules as its parent node_modules 276 silly linkStuff homebridge-gpio-motion-sensor@0.0.3 is part of a global install 277 silly linkStuff homebridge-gpio-motion-sensor@0.0.3 is installed into a global node_modules 278 silly linkStuff homebridge-gpio-motion-sensor@0.0.3 is installed into the top-level global node_modules 279 timing action:build Completed in 15ms 280 silly doSerial global-link 80 281 silly doParallel update-linked 0 282 silly doSerial install 80 283 silly install asap@2.0.6 284 info lifecycle asap@2.0.6~install: asap@2.0.6 285 silly install async@1.5.2 286 info lifecycle async@1.5.2~install: async@1.5.2 287 silly install bindings@1.2.1 288 info lifecycle bindings@1.2.1~install: bindings@1.2.1 289 silly install ms@2.0.0 290 info lifecycle ms@2.0.0~install: ms@2.0.0 291 silly install debug@2.6.9 292 info lifecycle debug@2.6.9~install: debug@2.6.9 293 silly install nan@2.6.2 294 info lifecycle nan@2.6.2~install: nan@2.6.2 295 silly install epoll@0.1.22 296 info lifecycle epoll@0.1.22~install: epoll@0.1.22 297 verbose lifecycle epoll@0.1.22~install: unsafe-perm in lifecycle false 298 verbose lifecycle epoll@0.1.22~install: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/epoll/node_modules/.bin:/usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/.bin:/usr/local/lib/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 299 verbose lifecycle epoll@0.1.22~install: CWD: /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/epoll 300 silly lifecycle epoll@0.1.22~install: Args: [ '-c', 'node-gyp rebuild' ] 301 silly lifecycle epoll@0.1.22~install: Returned: code: 1 signal: null 302 info lifecycle epoll@0.1.22~install: Failed to exec install script 303 timing action:install Completed in 1729ms 304 verbose unlock done using /root/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging 305 timing stage:rollbackFailedOptional Completed in 187ms 306 timing stage:runTopLevelLifecycles Completed in 4574ms 307 verbose stack Error: epoll@0.1.22 install: `node-gyp rebuild` 307 verbose stack Exit status 1 307 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16) 307 verbose stack at EventEmitter.emit (events.js:189:13) 307 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 307 verbose stack at ChildProcess.emit (events.js:189:13) 307 verbose stack at maybeClose (internal/child_process.js:978:16) 307 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5) 308 verbose pkgid epoll@0.1.22 309 verbose cwd /home/pi 310 verbose Linux 4.14.98-v7+ 311 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "-g" "homebridge-gpio-motion-sensor" 312 verbose node v11.5.0 313 verbose npm v6.9.0 314 error code ELIFECYCLE 315 error errno 1 316 error epoll@0.1.22 install: `node-gyp rebuild` 316 error Exit status 1 317 error Failed at the epoll@0.1.22 install script. 317 error This is probably not a problem with npm. There is likely additional logging output above. 318 verbose exit [ 1, true ]