Hat noch jemand ne Idee?
Beiträge von MoinMoin
-
-
beide Befehle haben nur mit einem sudo davor funktioniert
ich erhalte aber immer noch folgende Fehler beim Verusch den Adapter ber Konsole zu installieren:
Code
Alles anzeigenroot@ioBroker-RasPi:/opt/iobroker# sudo npm install iobroker.zigbee > @serialport/bindings@8.0.7 install /opt/iobroker/node_modules/iobroker.zigbee/node_modules/@serialport/bindings > prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild prebuild-install WARN install No prebuilt binaries found (target=12.14.1 runtime=node arch=arm libc= platform=linux) Traceback (most recent call last): File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 47, in <module> import gyp File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 10, in <module> import gyp.input File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 9, in <module> import gyp.common File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common.py", line 10, in <module> import tempfile File "/usr/lib/python3.5/tempfile.py", line 44, in <module> import shutil as _shutil File "/usr/lib/python3.5/shutil.py", line 22, in <module> import bz2 File "<frozen importlib._bootstrap>", line 969, in _find_and_load File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 673, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 669, in exec_module File "<frozen importlib._bootstrap_external>", line 773, in get_code File "<frozen importlib._bootstrap_external>", line 484, in _compile_bytecode ValueError: bad marshal data (invalid reference) gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16) gyp ERR! stack at ChildProcess.emit (events.js:223:5) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) gyp ERR! System Linux 4.19.66-v7+ gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/iobroker.zigbee/node_modules/@serialport/bindings gyp ERR! node -v v12.14.1 gyp ERR! node-gyp -v v5.0.5 gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/@serialport/bindings/package.json' npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/@types/request/package.json' npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/cc-znp/package.json' npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/zigbee-herdsman/package.json' npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/zigbee-shepherd-converters/package.json' npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/zigbee2mqtt/package.json' npm WARN bl@0.7.0 requires a peer of stream-browserify@* but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.5 (node_modules/osx-temperature-sensor): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.5: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @serialport/bindings@8.0.7 install: `prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @serialport/bindings@8.0.7 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-02-15T16_08_48_539Z-debug.log
-
Code
Alles anzeigenroot@ioBroker-RasPi:/opt/iobroker# npm install -g node-gyp npm ERR! code EACCES npm ERR! syscall unlink npm ERR! path /usr/local/bin/node-gyp npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, unlink '/usr/local/bin/node-gyp' npm ERR! [OperationalError: EACCES: permission denied, unlink '/usr/local/bin/node-gyp'] { npm ERR! cause: [Error: EACCES: permission denied, unlink '/usr/local/bin/node-gyp'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'unlink', npm ERR! path: '/usr/local/bin/node-gyp' npm ERR! }, npm ERR! stack: "Error: EACCES: permission denied, unlink '/usr/local/bin/node-gyp'", npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'unlink', npm ERR! path: '/usr/local/bin/node-gyp' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2020-02-08T18_57_52_431Z-debug.log
Schon mal vielen Dank für deine Hilfe!
-
Sorry, hier nochmal die Error's:
Code
Alles anzeigenpi@ioBroker-RasPi:/opt/iobroker $ sudo chown -R 1000:1000 "/root/.npm" pi@ioBroker-RasPi:/opt/iobroker $ pi@ioBroker-RasPi:/opt/iobroker $ sudo npm rebuild > iobroker@1.1.2 install /opt/iobroker/node_modules/iobroker > node lib/prepareSetup.js && node lib/setup.js NPM version: 6.13.6 npm version >= 5: disabling package-lock npm install iobroker.discovery@stable --production --save npm ERR! code EACCES npm ERR! syscall scandir npm ERR! path /root/.npm/_logs npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 1000:1000 "/root/.npm" glob error [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] { errno: -13, code: 'EACCES', syscall: 'scandir', path: '/root/.npm/_logs' } npm ERR! code EACCES npm ERR! syscall open npm ERR! path /root/.npm/_cacache/index-v5/cf/f2/36d5247fab7b4b71107a30a594c5e6aaef3bb0803a59df473487f8a06141 npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 1000:1000 "/root/.npm" packet folder is: /opt/iobroker/node_modules/iobroker.discovery | exists: true npm install iobroker.admin@stable --production --save npm ERR! code EACCES npm ERR! syscall scandir npm ERR! path /root/.npm/_logs npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 1000:1000 "/root/.npm" glob error [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] { errno: -13, code: 'EACCES', syscall: 'scandir', path: '/root/.npm/_logs' } npm ERR! code EACCES npm ERR! syscall open npm ERR! path /root/.npm/_cacache/index-v5/7e/74/31e0424f3eb9d24c73143b8d7f72b3de0e58ddbe1a13b8e04f51ee44de6d npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 1000:1000 "/root/.npm" packet folder is: /opt/iobroker/node_modules/iobroker.admin | exists: true npm install iobroker.js-controller@stable --production --save npm ERR! code EACCES npm ERR! syscall scandir npm ERR! path /root/.npm/_logs npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 1000:1000 "/root/.npm" glob error [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] { errno: -13, code: 'EACCES', syscall: 'scandir', path: '/root/.npm/_logs' } npm ERR! code EACCES npm ERR! syscall open npm ERR! path /root/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 1000:1000 "/root/.npm" packet folder is: /opt/iobroker/node_modules/iobroker.js-controller | exists: true Non-critical error: EACCES: permission denied, open '/opt/iobroker/iobroker' > serialport@6.2.2 install /opt/iobroker/node_modules/iobroker.discovery/node_modules/serialport > prebuild-install || node-gyp rebuild sh: 1: prebuild-install: not found gyp ERR! clean error gyp ERR! stack Error: EACCES: permission denied, unlink 'build/config.gypi' gyp ERR! System Linux 4.19.66-v7+ gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/iobroker.discovery/node_modules/serialport gyp ERR! node -v v12.14.1 gyp ERR! node-gyp -v v5.0.5 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! serialport@6.2.2 install: `prebuild-install || node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the serialport@6.2.2 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-02-08T17_11_01_684Z-debug.log
-
Habe ich gemacht, immer noch die gleichen Fehler
-
bei dem Befehl sudo npm rebuild
erhalte ich folgende Fehlermeldungen:
Code
Alles anzeigenpi@ioBroker-RasPi:/opt/iobroker $ sudo npm rebuild > iobroker@1.1.2 install /opt/iobroker/node_modules/iobroker > node lib/prepareSetup.js && node lib/setup.js NPM version: 6.13.6 npm version >= 5: disabling package-lock npm install iobroker.discovery@stable --production --save npm ERR! code EACCES npm ERR! syscall scandir npm ERR! path /root/.npm/_logs npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 1000:1000 "/root/.npm" glob error [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] { errno: -13, code: 'EACCES', syscall: 'scandir', path: '/root/.npm/_logs' } npm ERR! code EACCES npm ERR! syscall open npm ERR! path /root/.npm/_cacache/index-v5/cf/f2/36d5247fab7b4b71107a30a594c5e6a aef3bb0803a59df473487f8a06141 npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 1000:1000 "/root/.npm" packet folder is: /opt/iobroker/node_modules/iobroker.discovery | exists: true npm install iobroker.admin@stable --production --save npm ERR! code EACCES npm ERR! syscall scandir npm ERR! path /root/.npm/_logs npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 1000:1000 "/root/.npm" glob error [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] { errno: -13, code: 'EACCES', syscall: 'scandir', path: '/root/.npm/_logs' } npm ERR! code EACCES npm ERR! syscall open npm ERR! path /root/.npm/_cacache/index-v5/7e/74/31e0424f3eb9d24c73143b8d7f72b3d e0e58ddbe1a13b8e04f51ee44de6d npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 1000:1000 "/root/.npm" packet folder is: /opt/iobroker/node_modules/iobroker.admin | exists: true npm install iobroker.js-controller@stable --production --save npm ERR! code EACCES npm ERR! syscall scandir npm ERR! path /root/.npm/_logs npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 1000:1000 "/root/.npm" glob error [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] { errno: -13, code: 'EACCES', syscall: 'scandir', path: '/root/.npm/_logs' } npm ERR! code EACCES npm ERR! syscall open npm ERR! path /root/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f8 3c59d3cff19a70c94e745504ac47e npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 1000:1000 "/root/.npm" packet folder is: /opt/iobroker/node_modules/iobroker.js-controller | exists: tr ue Non-critical error: EACCES: permission denied, open '/opt/iobroker/iobroker' > serialport@6.2.2 install /opt/iobroker/node_modules/iobroker.discovery/node_mo dules/serialport > prebuild-install || node-gyp rebuild sh: 1: prebuild-install: not found gyp ERR! clean error gyp ERR! stack Error: EACCES: permission denied, unlink 'build/config.gypi' gyp ERR! System Linux 4.19.66-v7+ gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_mod ules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/iobroker.discovery/node_modules/serialpo rt gyp ERR! node -v v12.14.1 gyp ERR! node-gyp -v v5.0.5 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! serialport@6.2.2 install: `prebuild-install || node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the serialport@6.2.2 install script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-02-08T16_51_21_205Z-debug.log
-
Brauche Hilfe Der Adapter lässt sich weder über das Webinterface (auch Github) noch über Commandozeile installieren
-
Geht leider auch nicht. Erhalte folgende Fehlermeldungen:
$ ./iobroker url "https://github.com/ioBroker/ioBroker.zigbee" --debug
install https://github.com/ioBroker/ioBro…8b76a706c1acc9d
NPM version: 6.13.6
npm install https://github.com/ioBroker/ioBro…8b76a706c1acc9d --loglevel error --prefix "/opt/iobroker" (System call)
> @serialport/bindings@8.0.7 install /opt/iobroker/node_modules/iobroker.zigbee/node_modules/@serialport/bindings> prebuild-install --tag-prefix @serialport/bindings@ node-gyp rebuild
Traceback (most recent call last): File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 47, in <module> import gyp File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 10, in <module> import gyp.input File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 9, in <module> import gyp.common File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common.py", line 10, in <module> import tempfile File "/usr/lib/python3.5/tempfile.py", line 44, in <module> import shutil as _shutil File "/usr/lib/python3.5/shutil.py", line 22, in <module> import bz2 File "<frozen importlib._bootstrap>", line 969, in _find_and_load File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 673, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 669, in exec_module File "<frozen importlib._bootstrap_external>", line 773, in get_code File "<frozen importlib._bootstrap_external>", line 484, in _compile_bytecodeValueError: bad marshal data (invalid reference)
gyp
ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)gyp ERR! stack at ChildProcess.emit (events.js:223:5)gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)gyp ERR! System Linux 4.19.66-v7+gyp
ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/iobroker.zigbee/node_modules/@serialport/bindingsgyp ERR! node -v v12.14.1gyp ERR! node-gyp -v v5.0.5gyp
ERR! not ok
npm
ERR! code ELIFECYCLEnpm
ERR!
errno 1
npm ERR!
@serialport/bindings@8.0.7 install: `prebuild-install --tag-prefix @serialport/bindings@ node-gyp rebuild`npm
ERR! Exit status 1npm ERR! npm ERR! Failed at the @serialport/bindings@8.0.7 install script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!
A complete log of this run can be found in:npm
ERR! /home/iobroker/.npm/_logs/2020-02-02T11_45_14_900Z-debug.log
ERROR: host.ioBroker-RasPi Cannot install https://github.com/ioBroker/ioBro…b76a706c1acc9d: 1
ERROR: process exited with code 25
-
Hallo zusammen,
ich hatte den Zigbee Adapter bereits einmal installiert. Nach einer Deinstallation kann ich nun den Adapter leider nicht mehr installieren. Ich erhalte folgende Fehler:
$ ./iobroker add zigbee --host ioBroker-RasPi
NPM version: 6.13.6
npm install iobroker.zigbee@0.10.2 --loglevel error --prefix "/opt/iobroker" (System call)
sh: 1:
prebuild-install: not found
Traceback (most recent call last): File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 47, in <module> import gyp File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 10, in <module> import gyp.input File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 9, in <module> import gyp.common File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common.py", line 10, in <module> import tempfile File "/usr/lib/python3.5/tempfile.py", line 44, in <module> import shutil as _shutil File "/usr/lib/python3.5/shutil.py", line 22, in <module> import bz2 File "<frozen importlib._bootstrap>", line 969, in _find_and_load File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 673, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 669, in exec_module File "<frozen importlib._bootstrap_external>", line 773, in get_code File "<frozen importlib._bootstrap_external>", line 484, in _compile_bytecodeValueError: bad marshal data (invalid reference)
gyp
ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)gyp ERR! stack at ChildProcess.emit (events.js:223:5)gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)gyp ERR! System Linux 4.19.66-v7+gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialportgyp ERR! node -v v12.14.1gyp ERR! node-gyp -v v5.0.5gyp ERR! not ok
npm
ERR! code
ELIFECYCLE
npm
ERR! errno
1npm
ERR! serialport@6.2.2 install: `prebuild-install node-gyp rebuild`npm
ERR! Exit status 1npm
ERR!
npm ERR! Failed at the serialport@6.2.2 install script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:npm ERR! /home/i
Ich habe auch bereits den ioBroker Fixer probiert leider ohne Erfolg. Auch ein installieren über die Konsole ist leider nicht mehr mölgich.