Installing node-red-contrib-home-assistant fails

Hi everyone

I found a flow on this forum that uses api_call_service & api_current_state node types from node-red-contrib-home-assistant. I wanted to install them but node-red is spitting out a bunch of errors I can’t make sense of. Any idea?

2023-07-30T22:14:11.676Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]
2023-07-30T22:14:13.652Z [err] npm
2023-07-30T22:14:13.653Z [err]  
2023-07-30T22:14:13.653Z [err] WARN config production Use `--omit=dev` instead.
2023-07-30T22:14:59.502Z [err] npm
2023-07-30T22:14:59.502Z [err]  
2023-07-30T22:14:59.503Z [err] WARN
2023-07-30T22:14:59.503Z [err]  
2023-07-30T22:14:59.503Z [err] deprecated
2023-07-30T22:14:59.503Z [err]  [email protected]: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
2023-07-30T22:14:59.836Z [err] npm
2023-07-30T22:14:59.836Z [err]  WARN deprecated [email protected]: this library is no longer supported
2023-07-30T22:14:59.998Z [err] npm 
2023-07-30T22:14:59.998Z [err] WARN deprecated [email protected]: This project is unmaintained
2023-07-30T22:15:00.199Z [err] npm 
2023-07-30T22:15:00.199Z [err] WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
2023-07-30T22:15:00.285Z [err] npm 
2023-07-30T22:15:00.285Z [err] WARN deprecated [email protected]: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
2023-07-30T22:15:00.407Z [err] npm
2023-07-30T22:15:00.407Z [err]  WARN deprecated [email protected]: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
2023-07-30T22:15:00.809Z [err] npm
2023-07-30T22:15:00.809Z [err]  WARN deprecated [email protected]: This project is unmaintained
2023-07-30T22:15:01.073Z [err] npm
2023-07-30T22:15:01.073Z [err]  
2023-07-30T22:15:01.074Z [err] WARN
2023-07-30T22:15:01.074Z [err]  
2023-07-30T22:15:01.074Z [err] deprecated
2023-07-30T22:15:01.074Z [err]  [email protected]: Multer 1.x is affected by CVE-2022-24434. This is fixed in v1.4.4-lts.1 which drops support for versions of Node.js before 6. Please upgrade to at least Node.js 6 and version 1.4.4-lts.1 of Multer. If you need support for older versions of Node.js, we are open to accepting patches that would fix the CVE on the main 1.x release line, whilst maintaining compatibility with Node.js 0.10.
2023-07-30T22:15:01.238Z [err] npm
2023-07-30T22:15:01.239Z [err]  
2023-07-30T22:15:01.239Z [err] WARN
2023-07-30T22:15:01.239Z [err]  
2023-07-30T22:15:01.240Z [err] deprecated
2023-07-30T22:15:01.240Z [err]  [email protected]: This project is unmaintained
2023-07-30T22:15:01.645Z [err] npm
2023-07-30T22:15:01.645Z [err]  WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
2023-07-30T22:15:01.716Z [err] npm 
2023-07-30T22:15:01.716Z [err] WARN deprecated [email protected]: Backported compatibility to node > 6
2023-07-30T22:15:01.730Z [err] npm 
2023-07-30T22:15:01.730Z [err] WARN deprecated [email protected]: Mailparser versions older than v2.3.0 are deprecated
2023-07-30T22:15:02.299Z [err] npm
2023-07-30T22:15:02.300Z [err]  
2023-07-30T22:15:02.300Z [err] WARN
2023-07-30T22:15:02.301Z [err]  
2023-07-30T22:15:02.302Z [err] deprecated
2023-07-30T22:15:02.302Z [err]  [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
2023-07-30T22:15:02.703Z [err] npm 
2023-07-30T22:15:02.704Z [err] WARN deprecated [email protected]: versions < v5.0.0 do not handle NUL in passwords properly
2023-07-30T22:15:03.264Z [err] npm
2023-07-30T22:15:03.265Z [err]  WARN deprecated [email protected]: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
2023-07-30T22:15:04.133Z [err] npm 
2023-07-30T22:15:04.134Z [err] WARN deprecated [email protected]: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
2023-07-30T22:15:04.238Z [err] npm 
2023-07-30T22:15:04.238Z [err] WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
2023-07-30T22:15:05.718Z [err] npm WARN deprecated
2023-07-30T22:15:05.718Z [err]  [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
2023-07-30T22:15:06.191Z [err] npm 
2023-07-30T22:15:06.192Z [err] WARN deprecated [email protected]: you can use npm install i18next from version 2.0.0
2023-07-30T22:16:58.346Z [err] npm ERR! code 1
2023-07-30T22:16:58.356Z [err] npm ERR!
2023-07-30T22:16:58.356Z [err]  git dep preparation failed
2023-07-30T22:16:58.356Z [err] npm 
2023-07-30T22:16:58.356Z [err] ERR! command /usr/bin/node /usr/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/home/pi/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
2023-07-30T22:16:58.358Z [err] npm ERR!
2023-07-30T22:16:58.358Z [err]  npm WARN using --force Recommended protections disabled.
2023-07-30T22:16:58.358Z [err] npm ERR! npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
2023-07-30T22:16:58.358Z [err] npm ERR! npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
2023-07-30T22:16:58.358Z [err] npm ERR! npm WARN deprecated [email protected]: this library is no longer supported
2023-07-30T22:16:58.358Z [err] npm 
2023-07-30T22:16:58.358Z [err] ERR! npm WARN deprecated [email protected]: This project is unmaintained
2023-07-30T22:16:58.358Z [err] npm ERR! npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
2023-07-30T22:16:58.358Z [err] npm ERR! npm WARN deprecated [email protected]: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
2023-07-30T22:16:58.358Z [err] npm 
2023-07-30T22:16:58.358Z [err] ERR! npm WARN deprecated [email protected]: Please use the native JSON object instead of JSON 3
2023-07-30T22:16:58.358Z [err] npm 
2023-07-30T22:16:58.358Z [err] ERR! npm WARN deprecated [email protected]: This package is unmaintained. Use @sinonjs/formatio instead
2023-07-30T22:16:58.358Z [err] npm ERR!
2023-07-30T22:16:58.358Z [err]  npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
2023-07-30T22:16:58.358Z [err] npm ERR!
2023-07-30T22:16:58.359Z [err]  npm WARN deprecated [email protected]: This package has been deprecated in favour of @sinonjs/samsam
2023-07-30T22:16:58.359Z [err] npm ERR!
2023-07-30T22:16:58.359Z [err]  npm WARN deprecated [email protected]: This project is unmaintained
2023-07-30T22:16:58.359Z [err] npm ERR! npm WARN deprecated [email protected]: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
2023-07-30T22:16:58.359Z [err] npm ERR! npm WARN deprecated [email protected]: Multer 1.x is affected by CVE-2022-24434. This is fixed in v1.4.4-lts.1 which drops support for versions of Node.js before 6. Please upgrade to at least Node.js 6 and version 1.4.4-lts.1 of Multer. If you need support for older versions of Node.js, we are open to accepting patches that would fix the CVE on the main 1.x release line, whilst maintaining compatibility with Node.js 0.10.
2023-07-30T22:16:58.359Z [err] npm
2023-07-30T22:16:58.359Z [err]  ERR! npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
2023-07-30T22:16:58.359Z [err] npm 
2023-07-30T22:16:58.359Z [err] ERR! npm WARN deprecated [email protected]: This project is unmaintained
2023-07-30T22:16:58.359Z [err] npm ERR!
2023-07-30T22:16:58.359Z [err]  npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.
2023-07-30T22:16:58.359Z [err] npm ERR!
2023-07-30T22:16:58.359Z [err]  npm WARN deprecated [email protected]: not maintained anymore
2023-07-30T22:16:58.359Z [err] npm ERR!
2023-07-30T22:16:58.359Z [err]  npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
2023-07-30T22:16:58.359Z [err] npm ERR!
2023-07-30T22:16:58.360Z [err]  npm WARN deprecated [email protected]: Mailparser versions older than v2.3.0 are deprecated
2023-07-30T22:16:58.360Z [err] npm ERR! npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
2023-07-30T22:16:58.360Z [err] npm ERR! npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
2023-07-30T22:16:58.360Z [err] npm ERR! npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
2023-07-30T22:16:58.360Z [err] npm
2023-07-30T22:16:58.360Z [err]  ERR! npm WARN deprecated [email protected]: versions < v5.0.0 do not handle NUL in passwords properly
2023-07-30T22:16:58.360Z [err] npm
2023-07-30T22:16:58.360Z [err]  ERR! npm WARN deprecated [email protected]: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
2023-07-30T22:16:58.360Z [err] npm 
2023-07-30T22:16:58.360Z [err] ERR! npm WARN deprecated [email protected]: Please upgrade to v7.0.2+ of superagent.  We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing.  See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>.
2023-07-30T22:16:58.360Z [err] npm ERR!
2023-07-30T22:16:58.360Z [err]  npm WARN deprecated [email protected]: This module is no longer maintained, try this instead:
2023-07-30T22:16:58.360Z [err] npm ERR! npm WARN deprecated   npm i nyc
2023-07-30T22:16:58.360Z [err] npm ERR! npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives.
2023-07-30T22:16:58.360Z [err] npm
2023-07-30T22:16:58.361Z [err]  ERR! npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
2023-07-30T22:16:58.361Z [err] npm
2023-07-30T22:16:58.361Z [err]  ERR! npm WARN deprecated [email protected]: The zlib module provides APIs for brotli compression/decompression starting with Node.js v10.16.0, please use it over iltorb
2023-07-30T22:16:58.361Z [err] npm 
2023-07-30T22:16:58.361Z [err] ERR! npm WARN deprecated [email protected]: you can use npm install i18next from version 2.0.0
2023-07-30T22:16:58.361Z [err] npm 
2023-07-30T22:16:58.363Z [err] ERR! npm WARN deprecated [email protected]: outdated version, please use @next
2023-07-30T22:16:58.363Z [err] npm ERR!
2023-07-30T22:16:58.364Z [err]  npm WARN deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
2023-07-30T22:16:58.364Z [err] npm ERR! npm ERR! code 1
2023-07-30T22:16:58.364Z [err] npm ERR! npm ERR! path /home/pi/.npm/_cacache/tmp/git-cloneSKt8iS/node_modules/chromedriver
2023-07-30T22:16:58.364Z [err] npm ERR! npm ERR! command failed
2023-07-30T22:16:58.364Z [err] npm ERR! npm ERR! command sh -c -- node install.js
2023-07-30T22:16:58.364Z [err] npm ERR! npm ERR! Only Linux 64 bits supported.
2023-07-30T22:16:58.364Z [err] npm ERR! 
2023-07-30T22:16:58.364Z [err] npm ERR! npm ERR! A complete log of this run can be found in:
2023-07-30T22:16:58.364Z [err] npm ERR! npm ERR!     /home/pi/.npm/_logs/2023-07-30T22_15_10_794Z-debug-0.log
2023-07-30T22:16:58.369Z [err] 
2023-07-30T22:16:58.370Z [err] npm 
2023-07-30T22:16:58.371Z [err] ERR! A complete log of this run can be found in:
2023-07-30T22:16:58.371Z [err] npm ERR!     /home/pi/.npm/_logs/2023-07-30T22_14_13_541Z-debug-0.log
2023-07-30T22:16:58.414Z rc=1

It doesn’t look like there’s been much activity on that for 5 years. The normal one to use is “node-red-contrib-home-assistant-websocket”. However, if you are using the Node Red addon for HA, it’s already installed.

Thanks, I just found that alternative through some issues on the old one in Github.
I can confirm it now works!