fhempy / gassistant-fhem

Connect FHEM to Google Assistant: https://wiki.fhem.de/wiki/Google_Assistant_FHEM_Connect
6 stars 1 forks source link

Node.js 13.x is no longer actively supported #2

Closed kwenzig closed 2 years ago

kwenzig commented 3 years ago

Installation with

pi@raspberrypi:~ $ curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -

as described here https://wiki.fhem.de/wiki/Google_Assistant_FHEM_Connect#Installation results in

                              DEPRECATION WARNING                            
  Node.js 13.x is no longer actively supported!
  You will not receive security or critical stability updates for this version.
  You should migrate to a supported version of Node.js as soon as possible.
  Use the installation script that corresponds to the version of Node.js you
  wish to install. e.g.
   * https://deb.nodesource.com/setup_10.x — Node.js 10 LTS "Dubnium"
   * https://deb.nodesource.com/setup_12.x — Node.js 12 LTS "Erbium" (recommended)
   * https://deb.nodesource.com/setup_14.x — Node.js 14 LTS "Fermium"
   * https://deb.nodesource.com/setup_15.x — Node.js 15 "Fifteen"

These warnings in a later step may be realted:

pi@raspberrypi:~ $ sudo npm install -g gassistant-fhem --unsafe-perm
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
/usr/bin/gassistant-fhem -> /usr/lib/node_modules/gassistant-fhem/bin/gassistant-fhem
> grpc@1.24.4 install /usr/lib/node_modules/gassistant-fhem/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library
node-pre-gyp WARN Using request for node-pre-gyp https download 
[grpc] Success: "/usr/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v79-linux-arm-glibc/grpc_node.node" is installed via remote
> core-js@3.6.5 postinstall /usr/lib/node_modules/gassistant-fhem/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
(...)
> protobufjs@6.10.2 postinstall /usr/lib/node_modules/gassistant-fhem/node_modules/protobufjs
> node scripts/postinstall
+ gassistant-fhem@3.0.3
added 327 packages from 244 contributors in 99.301s
fhempy commented 3 years ago

Thanks!

I'm going to test it with Node.js 14 LTS and see if it works.

request, request-promise and har-validator are separate libraries I need to change due to deprecated warning.

fhempy commented 3 years ago

Successfully tested with NodeJS 14 and updated wiki for installation.

Other fixes will be done in the next days.

fhempy commented 2 years ago

Closed, as it works with NodeJS14.