Da klappt was nicht:
pi@raspberrypi:~ $ sudo npm install -g --unsafe-perm hap-nodejs
+ [email protected]
added 56 packages from 36 contributors in 6.02s
pi@raspberrypi:~ $ sudo npm install -g --unsafe-perm homebridge-broadlink-rm
npm ERR! code 128
npm ERR! Command failed: git clone --depth=1 -q -b feature/typescript git://github.com/lprhodes/homebridge-platform-helper.git /root/.npm/_cacache/tmp/git-clone-59942957
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-59942957': Permission denied
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-06-27T15_11_29_371Z-debug.log
Im log:
0 info it worked if it ends with ok
1 verbose cli [
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-broadlink-rm'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 023df10ae1d2d908
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 200 https://registry.npmjs.org/homebridge-broadlink-rm 280ms
8 http fetch GET 200 https://registry.npmjs.org/homebridge-broadlink-rm/-/homeb$
9 silly pacote tag manifest for homebridge-broadlink-rm@latest fetched in 456ms
10 timing stage:loadCurrentTree Completed in 493ms
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 3ms
16 silly install loadAllDepsIntoIdealTree
17 silly resolveWithNewModule [email protected] checking installable status
18 http fetch GET 200 https://registry.npmjs.org/chai 222ms
19 http fetch GET 200 https://registry.npmjs.org/ping 202ms
20 http fetch GET 200 https://registry.npmjs.org/net-ping 212ms
21 http fetch GET 200 https://registry.npmjs.org/uuid 349ms
22 silly pacote range manifest for uuid@^3.3.3 fetched in 363ms
23 silly resolveWithNewModule [email protected] checking installable status
24 http fetch GET 200 https://registry.npmjs.org/chai/-/chai-4.2.0.tgz 178ms
25 http fetch GET 200 https://registry.npmjs.org/net-ping/-/net-ping-1.2.3.tgz 164ms
26 http fetch GET 200 https://registry.npmjs.org/ping/-/ping-0.2.3.tgz 176ms
27 silly pacote range manifest for chai@^4.2.0 fetched in 428ms
28 silly resolveWithNewModule [email protected] checking installable status
29 silly pacote range manifest for net-ping@^1.2.3 fetched in 399ms
30 silly resolveWithNewModule [email protected] checking installable status
31 silly pacote range manifest for ping@^0.2.2 fetched in 401ms
32 silly resolveWithNewModule [email protected] checking installable status
33 silly fetchPackageMetaData error for homebridge-platform-helper@github:lprhodes/homebridge-platform-helper#feature/typescript Command faile$
33 silly fetchPackageMetaData fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-59942957': Permission denied
34 http fetch GET 200 https://registry.npmjs.org/find-key 929ms
35 http fetch GET 200 https://registry.npmjs.org/github-version-checker 960ms
36 http fetch GET 200 https://registry.npmjs.org/broadlinkjs-rm 1000ms
37 http fetch GET 200 https://registry.npmjs.org/find-key/-/find-key-2.1.3.tgz 118ms
38 http fetch GET 200 https://registry.npmjs.org/bro…/broadlinkjs-rm-0.7.6.tgz 71ms
39 http fetch GET 200 https://registry.npmjs.org/git…version-checker-1.2.0.tgz 112ms
40 silly pacote range manifest for find-key@^2.0.1 fetched in 1093ms
41 silly resolveWithNewModule [email protected] checking installable status
42 silly pacote range manifest for broadlinkjs-rm@^0.7.6 fetched in 1107ms
43 silly resolveWithNewModule [email protected] checking installable status
44 silly pacote range manifest for github-version-checker@^1.2.0 fetched in 1096ms
45 silly resolveWithNewModule [email protected] checking installable status
46 timing stage:rollbackFailedOptional Completed in 1ms
47 timing stage:runTopLevelLifecycles Completed in 1639ms
48 verbose stack Error: Command failed: git clone --depth=1 -q -b feature/typescript git://github.com/lprhodes/homebridge-platform-helper.git $
48 verbose stack fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-59942957': Permission denied
48 verbose stack
48 verbose stack at ChildProcess.exithandler (child_process.js:303:12)
48 verbose stack at ChildProcess.emit (events.js:310:20)
48 verbose stack at maybeClose (internal/child_process.js:1021:16)
48 verbose stack at Socket.<anonymous> (internal/child_process.js:443:11)
48 verbose stack at Socket.emit (events.js:310:20)
48 verbose stack at Pipe.<anonymous> (net.js:672:12)
49 verbose cwd /home/pi
50 verbose Linux 4.19.97-v7l+
51 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "--unsafe-perm" "homebridge-broadlink-rm"
52 verbose node v12.16.2
53 verbose npm v6.14.4
54 error code 128
55 error Command failed: git clone --depth=1 -q -b feature/typescript git://github.com/lprhodes/homebridge-platform-helper.git /root/.npm/_cac$
55 error fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-59942957': Permission denied
56 verbose exit [ 1, true ]