Closed omarassil closed 3 years ago
Hi,
Could you try sudo -s before using your sudo npm install...
I’m not sure that it will work, but this indicates that it should: https://github.com/homespun/homebridge-platform-ring-video-doorbell/issues/54
Thanks,
Roy
I'm trying to install the plugin on a new Raspberry Pi and unfortunately getting the same error. Tried unsafe-perm and sudo -s with no luck.
It seems to be failing when trying to clone the node-lightwaverf dependency?
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/usr/bin/node',
1 verbose cli '/usr/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'homebridge-lightwaverf'
1 verbose cli ]
2 info using npm@6.12.1
3 info using node@v12.13.1
4 verbose npm-session 013b947c3fa46f52
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 304 https://registry.npmjs.org/homebridge-lightwaverf 212ms (from cache)
8 silly pacote tag manifest for homebridge-lightwaverf@latest fetched in 239ms
9 timing stage:loadCurrentTree Completed in 277ms
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 3ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule homebridge-lightwaverf@0.2.1 checking installable status
17 silly fetchPackageMetaData error for lightwaverf@git+https://github.com/rooi/node-lightwaverf.git Command failed: git clone --mirror -q https://github.com/rooi/node-lightwaverf.git /root/.npm/_cacache/tmp/gi$
17 silly fetchPackageMetaData fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-f4ac8592/.git'
18 timing stage:rollbackFailedOptional Completed in 1ms
19 timing stage:runTopLevelLifecycles Completed in 846ms
20 verbose stack Error: Command failed: git clone --mirror -q https://github.com/rooi/node-lightwaverf.git /root/.npm/_cacache/tmp/git-clone-f4ac8592/.git
20 verbose stack fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-f4ac8592/.git'
20 verbose stack
20 verbose stack at ChildProcess.exithandler (child_process.js:295:12)
20 verbose stack at ChildProcess.emit (events.js:210:5)
20 verbose stack at maybeClose (internal/child_process.js:1021:16)
20 verbose stack at Socket.
Hi,
Could you try to install git? There is a git pull in the dependency.
sudo apt install git sudo -s sudo npm i homebridge-lightwaverf -g --unsafe-perm
Roy
Already had git installed, however although I'm sure I'd already tried the other commands, it worked when I just did it now. Very odd.
Thanks for the help.
I'm getting these errors when installing this plugin. I haven't seen it in other plugin's installation: I tried with --unsafe option but still getting the same.