NorthernMan54 / node-red-contrib-homebridge-automation

Homebridge and Node-RED Integration
Apache License 2.0
106 stars 18 forks source link

Install - fatal: could not create leading directories #17

Closed bakman2 closed 5 years ago

bakman2 commented 5 years ago

$ uname -a Linux homeautomation 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u3 (2019-06-16) x86_64 GNU/Linux

With and without root both state:

$ more /root/.npm/_logs/2019-07-27T11_16_24_327Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli   '/usr/bin/npm',
1 verbose cli   'install',
1 verbose cli   '-g',
1 verbose cli   'https://github.com/NorthernMan54/node-red-contrib-homebridge-automation' ]
2 info using npm@6.9.0
3 info using node@v10.16.0
4 verbose npm-session 0b7381e2a6a842aa
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData error for git+https://github.com/NorthernMan54/node-red-contrib-homebridge-automation.git C
ommand failed: git clone --mirror -q https://github.com/NorthernMan54/node-red-contrib-homebridge-automation.git /root/.
npm/_cacache/tmp/git-clone-ba274e94/.git
7 silly fetchPackageMetaData fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-ba274e94/
.git'
8 timing stage:rollbackFailedOptional Completed in 1ms
9 timing stage:runTopLevelLifecycles Completed in 481ms
10 verbose stack Error: Command failed: git clone --mirror -q https://github.com/NorthernMan54/node-red-contrib-homebrid
ge-automation.git /root/.npm/_cacache/tmp/git-clone-ba274e94/.git
10 verbose stack fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-ba274e94/.git'
10 verbose stack
10 verbose stack     at ChildProcess.exithandler (child_process.js:294:12)
10 verbose stack     at ChildProcess.emit (events.js:198:13)
10 verbose stack     at maybeClose (internal/child_process.js:982:16)
10 verbose stack     at Socket.stream.socket.on (internal/child_process.js:389:11)
10 verbose stack     at Socket.emit (events.js:198:13)
10 verbose stack     at Pipe._handle.close (net.js:606:12)
11 verbose cwd /home/administrator/.node-red
12 verbose Linux 4.9.0-9-amd64
13 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "https://github.com/NorthernMan54/node-red-contrib-homebri
dge-automation"
14 verbose node v10.16.0
15 verbose npm  v6.9.0
16 error code 128
17 error Command failed: git clone --mirror -q https://github.com/NorthernMan54/node-red-contrib-homebridge-automation.g
it /root/.npm/_cacache/tmp/git-clone-ba274e94/.git
17 error fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-ba274e94/.git'
18 verbose exit [ 1, true ]

Edit npm install -g hap-nodered works.

NorthernMan54 commented 5 years ago

I changed the packaging, and republished via NPM.

Try installing like this

cd ~/.node-red
npm install node-red-contrib-homebridge-automation

On Jul 27, 2019, at 7:20 AM, bakman2 notifications@github.com wrote:

With and without root both state:

10 verbose stack fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-ba274e94/.git' 10 verbose stack 10 verbose stack at ChildProcess.exithandler (child_process.js:294:12) 10 verbose stack at ChildProcess.emit (events.js:198:13) 10 verbose stack at maybeClose (internal/child_process.js:982:16) 10 verbose stack at Socket.stream.socket.on (internal/child_process.js:389:11) 10 verbose stack at Socket.emit (events.js:198:13) 10 verbose stack at Pipe._handle.close (net.js:606:12) 11 verbose cwd /home/administrator/.node-red 12 verbose Linux 4.9.0-9-amd64 13 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "https://github.com/NorthernMan54/node-red-contrib-homebri dge-automation" 14 verbose node v10.16.0 15 verbose npm v6.9.0 16 error code 128 17 error Command failed: git clone --mirror -q https://github.com/NorthernMan54/node-red-contrib-homebridge-automation.g it /root/.npm/_cacache/tmp/git-clone-ba274e94/.git 17 error fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-ba274e94/.git' 18 verbose exit [ 1, true ] — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NorthernMan54/node-red-contrib-homebridge-automation/issues/17?email_source=notifications&email_token=AEXEFGEN2KFAVGDKKZMBQPTQBQVRHA5CNFSM4IHJBYA2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HB277TQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AEXEFGDGCQ2J4X7BOTWAJJLQBQVRHANCNFSM4IHJBYAQ.

bakman2 commented 5 years ago

@NorthernMan54 thanks, it works.

Is there a limitation to what this node detects/can read from homebridge ? I am using homebridge-mqtt, I don't see it the devices I added. (I don't need this to work, but was testing).

NorthernMan54 commented 5 years ago

It should show everything, the only limitation would be the new TV accessories.

On Jul 27, 2019, at 9:00 AM, bakman2 notifications@github.com wrote:

@NorthernMan54 https://github.com/NorthernMan54 thanks, it works.

Is there a limitation to what this node detects/can read from homebridge ? I am using homebridge-mqtt, I don't see it the devices I added. (I don't need this to work, but was testing).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NorthernMan54/node-red-contrib-homebridge-automation/issues/17?email_source=notifications&email_token=AEXEFGGOZPLD4B6YH3WTGMDQBRBGTA5CNFSM4IHJBYA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD26LAZA#issuecomment-515682404, or mute the thread https://github.com/notifications/unsubscribe-auth/AEXEFGACNDYW4VKTJHNO2VTQBRBGTANCNFSM4IHJBYAQ.

bakman2 commented 5 years ago

Got it. Forgot the insecure mode, restarted homebridge and node-red. Now everything shows up. Nice, I will play around, thanks.

NorthernMan54 commented 5 years ago

Awesome

On Jul 27, 2019, at 1:06 PM, bakman2 notifications@github.com wrote:

Got it. Forgot the insecure mode, restarted homebridge and node-red. Now everything shows up. Nice, I will play around, thanks.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.