Installation Google_Assistant schlägt fehl

Begonnen von morrpheus, 15 November 2019, 23:36:07

Vorheriges Thema - Nächstes Thema

morrpheus

Moin Moin.

Wie der Titel schon sagt bekomme ich auf meinen Pi nicht den Google Assistenten installiert.
Ich habe mal das Log drangehängt.
Kann mir da jemand weiterhelfen?

MfG Jan


pi@fhem:~ $ sudo npm install -g gassistant-fhem --unsafe-perm
(node:728) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! TypeError: Cannot read property 'latest' of undefined
npm ERR!     at next (/usr/share/npm/lib/cache/add-named.js:219:35)
npm ERR!     at /usr/share/npm/lib/cache/add-named.js:207:5
npm ERR!     at RegClient.get_ (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:130:14)
npm ERR!     at RegClient.<anonymous> (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:49:12)
npm ERR!     at /usr/lib/nodejs/graceful-fs/graceful-fs.js:78:16
npm ERR!     at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 4.14.79-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "gassistant-fhem" "--unsafe-perm"
npm ERR! cwd /home/pi
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/gassistant-fhem/node_modules/sync-request/node_modules/sync-rpc'
npm ERR! error rolling back  sync-request@6.1.0 { Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/gassistant-fhem/node_modules/sync-request/node_modules/sync-rpc'
npm ERR! error rolling back   errno: -39,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   syscall: 'rmdir',
npm ERR! error rolling back   path: '/usr/local/lib/node_modules/gassistant-fhem/node_modules/sync-request/node_modules/sync-rpc' }
npm ERR! tar.unpack untar error /root/.npm/get-port/3.2.0/package.tgz
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/gassistant-fhem/node_modules/request-promise/node_modules/request-promise-core/node_modules/lodash'
npm ERR! error rolling back  gassistant-fhem@2.0.0 { Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/gassistant-fhem/node_modules/request-promise/node_modules/request-promise-core/node_modules/lodash'
npm ERR! error rolling back   errno: -39,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   syscall: 'rmdir',
npm ERR! error rolling back   path: '/usr/local/lib/node_modules/gassistant-fhem/node_modules/request-promise/node_modules/request-promise-core/node_modules/lodash' }
npm ERR! Error: Method Not Allowed
npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR!     at /usr/share/npm/lib/cache/add-named.js:203:12
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 4.14.79-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "gassistant-fhem" "--unsafe-perm"
npm ERR! cwd /home/pi
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm ERR! tar.unpack untar error /root/.npm/ajv/6.10.2/package.tgz
npm ERR! tar.unpack untar error /root/.npm/sshpk/1.16.1/package.tgz
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/gassistant-fhem/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/json-schema'
npm ERR! error rolling back  request@2.88.0 { Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/gassistant-fhem/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/json-schema'
npm ERR! error rolling back   errno: -39,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   syscall: 'rmdir',
npm ERR! error rolling back   path: '/usr/local/lib/node_modules/gassistant-fhem/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/json-schema' }
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/gassistant-fhem/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/json-schema/draft-03'
npm ERR! error rolling back  jsprim@1.4.1 { Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/gassistant-fhem/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/json-schema/draft-03'
npm ERR! error rolling back   errno: -39,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   syscall: 'rmdir',
npm ERR! error rolling back   path: '/usr/local/lib/node_modules/gassistant-fhem/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/json-schema/draft-03' }
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/gassistant-fhem/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/json-schema/draft-03/examples'
npm ERR! error rolling back  http-signature@1.2.0 { Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/gassistant-fhem/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/json-schema/draft-03/examples'
npm ERR! error rolling back   errno: -39,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   syscall: 'rmdir',
npm ERR! error rolling back   path: '/usr/local/lib/node_modules/gassistant-fhem/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/json-schema/draft-03/examples' }
npm ERR! tar.unpack untar error /root/.npm/firebase/5.11.1/package.tgz
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/npm-debug.log
npm ERR! not ok code 0

binford6000

Moin Jan,
gassistant habe ich zwar nicht im Einsatz, sollte aber wie alle anderen (homebridge & co) ablaufen.
Was mir spontan auffällt:
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21


Installiere mal ein aktuelles npm! Bei mir läuft zB. 6.13.0... Was für ein OS läuft auf dem pi? Denn:
Vorraussetzung: Raspbian/Debian stretch mit installiertem nodejs, jessie wird nicht supported. Buster ist noch nicht getestet!

Bei der Gelegenheit:
FHEM mit update all auf den letzten Stand bringen. FHEM muss zwingend aktuell sein. Letztes Update sollte nicht älter als 03.02.2019 sein.

Ist alles aus dem WIKI. Viel Erfolg weiterhin  ;)

VG Sebastian

morrpheus

#2
Moin Moin.

Updates hab ich schon gemacht, FHEM war sowieso aktuell.
node v12.13.0
npm 6.12.0
Auf dem Pi läuft Raspian stretch.

Mittlerweile sieht es so aus:

../ext/channel.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE grpc::node::Channel::GetConnectivityState(Nan::NAN_METHOD_ARGS_TYPE)':
../ext/channel.cc:292:56: error: no matching function for call to 'v8::Value::Equals(v8::Local<v8::Boolean>)'
   int try_to_connect = (int)info[0]->Equals(Nan::True());
                                                        ^
In file included from /root/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../ext/channel.cc:23:
/root/.cache/node-gyp/12.13.0/include/node/v8.h:2616:37: note: candidate: v8::Maybe<bool> v8::Value::Equals(v8::Local<v8::Context>, v8::Local<v8::Value>) const
   V8_WARN_UNUSED_RESULT Maybe<bool> Equals(Local<Context> context,
                                     ^~~~~~
/root/.cache/node-gyp/12.13.0/include/node/v8.h:2616:37: note:   candidate expects 2 arguments, 1 provided
At global scope:
cc1plus: error: unrecognized command line option '-Wno-cast-function-type' [-Werror]
cc1plus: all warnings being treated as errors
grpc_node.target.mk:186: die Regel für Ziel ,,Release/obj.target/grpc_node/ext/channel.o" scheiterte
make: *** [Release/obj.target/grpc_node/ext/channel.o] Fehler 1
make: Verzeichnis ,,/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/build" wird verlassen
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:210: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" "build" "--fallback-to-build" "--library=static_library" "--module=/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v72-linux-arm-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v72-linux-arm-glibc" "--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72"
gyp ERR! cwd /usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v72-linux-arm-glibc/grpc_node.node --module_name=grpc_node --module_path=/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v72-linux-arm-glibc --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
node-pre-gyp ERR! System Linux 4.19.66-v7+
node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc
node-pre-gyp ERR! node -v v12.13.0
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v72-linux-arm-glibc/grpc_node.node --module_name=grpc_node --module_path=/usr/local/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v72-linux-arm-glibc --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.20.0 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.20.0 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/2019-11-16T07_18_45_599Z-debug.log

morrpheus

Update: es läuft mittlerweile. Meine Version von node war zu neu. Mit der 8.11.1 gehts.

ather

Hallo Zusammen,
hat es schonmal jemand geschafft auf einem DietPI Debian 11 (Bullseye) gassistant fhem zu installieren?
Bei mir schlägt die installation immer fehl?

Wollte nur grundsätzlich wissen, ob es geht?

Gruß
Ather