nfarina / homebridge-dummy

Dummy switches for Homebridge: https://github.com/nfarina/homebridge
277 stars 83 forks source link

Unable to Install dummy switch #9

Open fLyRhyTHeMz opened 5 years ago

fLyRhyTHeMz commented 5 years ago

Hi All,

Ive been running into some errors with my install regarding the dummy switches. In the meantime I was able to get homebridge-statefuldummy installed and running but a lot of what i want to do with the dummy switches would be more elegantly accomplished by stateless dummy switches. For reference I'm running homebridge on a mac. Below is what i get when i try and run the install for the plugin:

Last login: Tue Dec 25 19:37:58 on ttys000 "Username removed"sMacBookPro1:~ "Username removed"$ sudo npm install -g --unsafe-perm homebridge-dummy Password WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/node-persist-6acb9485/examples/counter' WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/node-persist-6acb9485/src' WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/node-persist-6acb9485/tests' WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/mkdirp-d6434059/bin' WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/mkdirp-d6434059/examples' WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/mkdirp-d6434059/test' WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/minimist-749a5162/example' WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/homebridge-dummy-4d4976aa/test/mocks' WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/minimist-749a5162/test' npm ERR! path /usr/local/lib/node_modules/homebridge-dummy/node_modules/mkdirp/bin/cmd.js npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall chmod npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/homebridge-dummy/node_modules/mkdirp/bin/cmd.js' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in: npm ERR! /Users/"Username removed"/.npm/_logs/2018-12-26T02_39_54_605Z-debug.log "Username removed"sMacBookPro1:~ "Username removed"$

**Edit: I just realized i forgot to put in the complete log for this"

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 'install', 1 verbose cli '-g', 1 verbose cli '--unsafe-perm', 1 verbose cli 'homebridge-dummy' ] 2 info using npm@6.5.0 3 info using node@v8.11.2 4 verbose npm-session f9b255c5435e32d1 5 silly install loadCurrentTree 6 silly install readGlobalPackageData 7 http fetch GET 304 https://registry.npmjs.org/homebridge-dummy 277ms (from cache) 8 silly pacote tag manifest for homebridge-dummy@latest fetched in 290ms 9 timing stage:loadCurrentTree Completed in 461ms 10 silly install loadIdealTree 11 silly install cloneCurrentTreeToIdealTree 12 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms 13 silly install loadShrinkwrap 14 timing stage:loadIdealTree:loadShrinkwrap Completed in 2ms 15 silly install loadAllDepsIntoIdealTree 16 silly resolveWithNewModule homebridge-dummy@0.3.0 checking installable status 17 http fetch GET 304 https://registry.npmjs.org/node-persist 63ms (from cache) 18 silly pacote range manifest for node-persist@^2.1.0 fetched in 66ms 19 silly resolveWithNewModule node-persist@2.1.0 checking installable status 20 http fetch GET 304 https://registry.npmjs.org/is-absolute 61ms (from cache) 21 silly pacote range manifest for is-absolute@^0.2.6 fetched in 62ms 22 silly resolveWithNewModule is-absolute@0.2.6 checking installable status 23 http fetch GET 304 https://registry.npmjs.org/mkdirp 153ms (from cache) 24 silly pacote range manifest for mkdirp@~0.5.1 fetched in 155ms 25 silly resolveWithNewModule mkdirp@0.5.1 checking installable status 26 http fetch GET 304 https://registry.npmjs.org/q 165ms (from cache) 27 silly pacote range manifest for q@~1.1.1 fetched in 169ms 28 silly resolveWithNewModule q@1.1.2 checking installable status 29 http fetch GET 304 https://registry.npmjs.org/is-relative 54ms (from cache) 30 silly pacote range manifest for is-relative@^0.2.1 fetched in 58ms 31 silly resolveWithNewModule is-relative@0.2.1 checking installable status 32 http fetch GET 304 https://registry.npmjs.org/is-windows 62ms (from cache) 33 silly pacote range manifest for is-windows@^0.2.0 fetched in 65ms 34 silly resolveWithNewModule is-windows@0.2.0 checking installable status 35 http fetch GET 304 https://registry.npmjs.org/is-unc-path 51ms (from cache) 36 silly pacote range manifest for is-unc-path@^0.1.1 fetched in 56ms 37 silly resolveWithNewModule is-unc-path@0.1.2 checking installable status 38 http fetch GET 304 https://registry.npmjs.org/unc-path-regex 63ms (from cache) 39 silly pacote range manifest for unc-path-regex@^0.1.0 fetched in 64ms 40 silly resolveWithNewModule unc-path-regex@0.1.2 checking installable status 41 http fetch GET 304 https://registry.npmjs.org/minimist 86ms (from cache) 42 silly pacote version manifest for minimist@0.0.8 fetched in 87ms 43 silly resolveWithNewModule minimist@0.0.8 checking installable status 44 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 552ms 45 timing stage:loadIdealTree Completed in 559ms 46 silly currentTree lib 47 silly idealTree lib 47 silly idealTree └─┬ homebridge-dummy@0.3.0 47 silly idealTree ├── is-absolute@0.2.6 47 silly idealTree ├── is-relative@0.2.1 47 silly idealTree ├── is-unc-path@0.1.2 47 silly idealTree ├── is-windows@0.2.0 47 silly idealTree ├── minimist@0.0.8 47 silly idealTree ├── mkdirp@0.5.1 47 silly idealTree ├── node-persist@2.1.0 47 silly idealTree ├── q@1.1.2 47 silly idealTree └── unc-path-regex@0.1.2 48 silly install generateActionsToTake 49 timing stage:generateActionsToTake Completed in 7ms 50 silly diffTrees action count 10 51 silly diffTrees add is-windows@0.2.0 52 silly diffTrees add minimist@0.0.8 53 silly diffTrees add mkdirp@0.5.1 54 silly diffTrees add q@1.1.2 55 silly diffTrees add unc-path-regex@0.1.2 56 silly diffTrees add is-unc-path@0.1.2 57 silly diffTrees add is-relative@0.2.1 58 silly diffTrees add is-absolute@0.2.6 59 silly diffTrees add node-persist@2.1.0 60 silly diffTrees add homebridge-dummy@0.3.0 61 silly decomposeActions action count 80 62 silly decomposeActions fetch is-windows@0.2.0 63 silly decomposeActions extract is-windows@0.2.0 64 silly decomposeActions preinstall is-windows@0.2.0 65 silly decomposeActions build is-windows@0.2.0 66 silly decomposeActions install is-windows@0.2.0 67 silly decomposeActions postinstall is-windows@0.2.0 68 silly decomposeActions finalize is-windows@0.2.0 69 silly decomposeActions refresh-package-json is-windows@0.2.0 70 silly decomposeActions fetch minimist@0.0.8 71 silly decomposeActions extract minimist@0.0.8 72 silly decomposeActions preinstall minimist@0.0.8 73 silly decomposeActions build minimist@0.0.8 74 silly decomposeActions install minimist@0.0.8 75 silly decomposeActions postinstall minimist@0.0.8 76 silly decomposeActions finalize minimist@0.0.8 77 silly decomposeActions refresh-package-json minimist@0.0.8 78 silly decomposeActions fetch mkdirp@0.5.1 79 silly decomposeActions extract mkdirp@0.5.1 80 silly decomposeActions preinstall mkdirp@0.5.1 81 silly decomposeActions build mkdirp@0.5.1 82 silly decomposeActions install mkdirp@0.5.1 83 silly decomposeActions postinstall mkdirp@0.5.1 84 silly decomposeActions finalize mkdirp@0.5.1 85 silly decomposeActions refresh-package-json mkdirp@0.5.1 86 silly decomposeActions fetch q@1.1.2 87 silly decomposeActions extract q@1.1.2 88 silly decomposeActions preinstall q@1.1.2 89 silly decomposeActions build q@1.1.2 90 silly decomposeActions install q@1.1.2 91 silly decomposeActions postinstall q@1.1.2 92 silly decomposeActions finalize q@1.1.2 93 silly decomposeActions refresh-package-json q@1.1.2 94 silly decomposeActions fetch unc-path-regex@0.1.2 95 silly decomposeActions extract unc-path-regex@0.1.2 96 silly decomposeActions preinstall unc-path-regex@0.1.2 97 silly decomposeActions build unc-path-regex@0.1.2 98 silly decomposeActions install unc-path-regex@0.1.2 99 silly decomposeActions postinstall unc-path-regex@0.1.2 100 silly decomposeActions finalize unc-path-regex@0.1.2 101 silly decomposeActions refresh-package-json unc-path-regex@0.1.2 102 silly decomposeActions fetch is-unc-path@0.1.2 103 silly decomposeActions extract is-unc-path@0.1.2 104 silly decomposeActions preinstall is-unc-path@0.1.2 105 silly decomposeActions build is-unc-path@0.1.2 106 silly decomposeActions install is-unc-path@0.1.2 107 silly decomposeActions postinstall is-unc-path@0.1.2 108 silly decomposeActions finalize is-unc-path@0.1.2 109 silly decomposeActions refresh-package-json is-unc-path@0.1.2 110 silly decomposeActions fetch is-relative@0.2.1 111 silly decomposeActions extract is-relative@0.2.1 112 silly decomposeActions preinstall is-relative@0.2.1 113 silly decomposeActions build is-relative@0.2.1 114 silly decomposeActions install is-relative@0.2.1 115 silly decomposeActions postinstall is-relative@0.2.1 116 silly decomposeActions finalize is-relative@0.2.1 117 silly decomposeActions refresh-package-json is-relative@0.2.1 118 silly decomposeActions fetch is-absolute@0.2.6 119 silly decomposeActions extract is-absolute@0.2.6 120 silly decomposeActions preinstall is-absolute@0.2.6 121 silly decomposeActions build is-absolute@0.2.6 122 silly decomposeActions install is-absolute@0.2.6 123 silly decomposeActions postinstall is-absolute@0.2.6 124 silly decomposeActions finalize is-absolute@0.2.6 125 silly decomposeActions refresh-package-json is-absolute@0.2.6 126 silly decomposeActions fetch node-persist@2.1.0 127 silly decomposeActions extract node-persist@2.1.0 128 silly decomposeActions preinstall node-persist@2.1.0 129 silly decomposeActions build node-persist@2.1.0 130 silly decomposeActions install node-persist@2.1.0 131 silly decomposeActions postinstall node-persist@2.1.0 132 silly decomposeActions finalize node-persist@2.1.0 133 silly decomposeActions refresh-package-json node-persist@2.1.0 134 silly decomposeActions fetch homebridge-dummy@0.3.0 135 silly decomposeActions extract homebridge-dummy@0.3.0 136 silly decomposeActions preinstall homebridge-dummy@0.3.0 137 silly decomposeActions build homebridge-dummy@0.3.0 138 silly decomposeActions install homebridge-dummy@0.3.0 139 silly decomposeActions postinstall homebridge-dummy@0.3.0 140 silly decomposeActions finalize homebridge-dummy@0.3.0 141 silly decomposeActions refresh-package-json homebridge-dummy@0.3.0 142 silly install executeActions 143 silly doSerial global-install 80 144 verbose correctMkdir /Users/Username removed/.npm/_locks correctMkdir not in flight; initializing 145 verbose lock using /Users/Username removed/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging 146 silly doParallel extract 10 147 silly extract is-windows@0.2.0 148 silly extract minimist@0.0.8 149 silly extract mkdirp@0.5.1 150 silly extract q@1.1.2 151 silly extract unc-path-regex@0.1.2 152 silly extract is-unc-path@0.1.2 153 silly extract is-relative@0.2.1 154 silly extract is-absolute@0.2.6 155 silly extract node-persist@2.1.0 156 silly extract homebridge-dummy@0.3.0 157 timing action:extract Completed in 789ms 158 silly doReverseSerial unbuild 80 159 silly doSerial remove 80 160 silly doSerial move 80 161 silly doSerial finalize 80 162 silly finalize /usr/local/lib/node_modules/homebridge-dummy/node_modules/is-windows 163 silly finalize /usr/local/lib/node_modules/homebridge-dummy/node_modules/minimist 164 silly finalize /usr/local/lib/node_modules/homebridge-dummy/node_modules/mkdirp 165 silly finalize /usr/local/lib/node_modules/homebridge-dummy/node_modules/q 166 silly finalize /usr/local/lib/node_modules/homebridge-dummy/node_modules/unc-path-regex 167 silly finalize /usr/local/lib/node_modules/homebridge-dummy/node_modules/is-unc-path 168 silly finalize /usr/local/lib/node_modules/homebridge-dummy/node_modules/is-relative 169 silly finalize /usr/local/lib/node_modules/homebridge-dummy/node_modules/is-absolute 170 silly finalize /usr/local/lib/node_modules/homebridge-dummy/node_modules/node-persist 171 silly finalize /usr/local/lib/node_modules/homebridge-dummy 172 timing action:finalize Completed in 37ms 173 silly doParallel refresh-package-json 10 174 silly refresh-package-json /usr/local/lib/node_modules/homebridge-dummy/node_modules/is-windows 175 silly refresh-package-json /usr/local/lib/node_modules/homebridge-dummy/node_modules/minimist 176 silly refresh-package-json /usr/local/lib/node_modules/homebridge-dummy/node_modules/mkdirp 177 silly refresh-package-json /usr/local/lib/node_modules/homebridge-dummy/node_modules/q 178 silly refresh-package-json /usr/local/lib/node_modules/homebridge-dummy/node_modules/unc-path-regex 179 silly refresh-package-json /usr/local/lib/node_modules/homebridge-dummy/node_modules/is-unc-path 180 silly refresh-package-json /usr/local/lib/node_modules/homebridge-dummy/node_modules/is-relative 181 silly refresh-package-json /usr/local/lib/node_modules/homebridge-dummy/node_modules/is-absolute 182 silly refresh-package-json /usr/local/lib/node_modules/homebridge-dummy/node_modules/node-persist 183 silly refresh-package-json /usr/local/lib/node_modules/homebridge-dummy 184 timing action:refresh-package-json Completed in 62ms 185 silly doParallel preinstall 10 186 silly preinstall is-windows@0.2.0 187 info lifecycle is-windows@0.2.0~preinstall: is-windows@0.2.0 188 silly preinstall minimist@0.0.8 189 info lifecycle minimist@0.0.8~preinstall: minimist@0.0.8 190 silly preinstall mkdirp@0.5.1 191 info lifecycle mkdirp@0.5.1~preinstall: mkdirp@0.5.1 192 silly preinstall q@1.1.2 193 info lifecycle q@1.1.2~preinstall: q@1.1.2 194 silly preinstall unc-path-regex@0.1.2 195 info lifecycle unc-path-regex@0.1.2~preinstall: unc-path-regex@0.1.2 196 silly preinstall is-unc-path@0.1.2 197 info lifecycle is-unc-path@0.1.2~preinstall: is-unc-path@0.1.2 198 silly preinstall is-relative@0.2.1 199 info lifecycle is-relative@0.2.1~preinstall: is-relative@0.2.1 200 silly preinstall is-absolute@0.2.6 201 info lifecycle is-absolute@0.2.6~preinstall: is-absolute@0.2.6 202 silly preinstall node-persist@2.1.0 203 info lifecycle node-persist@2.1.0~preinstall: node-persist@2.1.0 204 silly preinstall homebridge-dummy@0.3.0 205 info lifecycle homebridge-dummy@0.3.0~preinstall: homebridge-dummy@0.3.0 206 timing action:preinstall Completed in 6ms 207 silly doSerial build 80 208 silly build is-windows@0.2.0 209 info linkStuff is-windows@0.2.0 210 silly linkStuff is-windows@0.2.0 has /usr/local/lib/node_modules/homebridge-dummy/node_modules as its parent node_modules 211 silly linkStuff is-windows@0.2.0 is part of a global install 212 silly linkStuff is-windows@0.2.0 is installed into a global node_modules 213 silly build minimist@0.0.8 214 info linkStuff minimist@0.0.8 215 silly linkStuff minimist@0.0.8 has /usr/local/lib/node_modules/homebridge-dummy/node_modules as its parent node_modules 216 silly linkStuff minimist@0.0.8 is part of a global install 217 silly linkStuff minimist@0.0.8 is installed into a global node_modules 218 silly build mkdirp@0.5.1 219 info linkStuff mkdirp@0.5.1 220 silly linkStuff mkdirp@0.5.1 has /usr/local/lib/node_modules/homebridge-dummy/node_modules as its parent node_modules 221 silly linkStuff mkdirp@0.5.1 is part of a global install 222 silly linkStuff mkdirp@0.5.1 is installed into a global node_modules 223 verbose linkBins [ { mkdirp: 'bin/cmd.js' }, 223 verbose linkBins '/usr/local/lib/node_modules/homebridge-dummy/node_modules/.bin', 223 verbose linkBins false ] 224 timing action:build Completed in 6ms 225 verbose unlock done using /Users/Username removed/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging 226 timing stage:rollbackFailedOptional Completed in 30ms 227 timing stage:runTopLevelLifecycles Completed in 1972ms 228 verbose stack Error: ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/homebridge-dummy/node_modules/mkdirp/bin/cmd.js' 229 verbose cwd /Users/Username removed 230 verbose Darwin 18.2.0 231 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "--unsafe-perm" "homebridge-dummy" 232 verbose node v8.11.2 233 verbose npm v6.5.0 234 error path /usr/local/lib/node_modules/homebridge-dummy/node_modules/mkdirp/bin/cmd.js 235 error code ENOENT 236 error errno -2 237 error syscall chmod 238 error enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/homebridge-dummy/node_modules/mkdirp/bin/cmd.js' 239 error enoent This is related to npm not being able to find a file. 240 verbose exit [ -2, true ]