node-red-contrib-chatbot icon indicating copy to clipboard operation
node-red-contrib-chatbot copied to clipboard

Can't install this node on HASSIO 0.112

Open nandinho84 opened this issue 5 years ago • 4 comments

I'm using HASSIO 0.112 with node red addon on a Raspberry Pi 3b+. However every time I try to install this node, I have several error messages on the log:

`----------------------------------------------------------- 2020-07-04T08:30:42.662Z Install : node-red-contrib-chatbot 0.19.3

2020-07-04T08:30:42.976Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production [email protected] 2020-07-04T08:33:32.280Z [err] npm 2020-07-04T08:33:32.281Z [err] WARN deprecated @types/[email protected]: This is a stub types definition. form-data provides its own type definitions, so you do not need this installed. 2020-07-04T08:33:32.797Z [err] npm 2020-07-04T08:33:32.798Z [err] WARN deprecated @types/[email protected]: This is a stub types definition. p-cancelable provides its own type definitions, so you do not need this installed. 2020-07-04T08:33:33.188Z [err] npm 2020-07-04T08:33:33.189Z [err] WARN deprecated @types/[email protected]: This is a stub types definition. p-retry provides its own type definitions, so you do not need this installed. 2020-07-04T08:36:28.751Z [err] npm 2020-07-04T08:36:28.753Z [err] WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated 2020-07-04T08:36:28.763Z [err] npm 2020-07-04T08:36:28.764Z [err] WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated 2020-07-04T08:36:39.521Z [err] npm 2020-07-04T08:36:39.521Z [err] WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. 2020-07-04T08:41:29.156Z [err] npm 2020-07-04T08:41:29.157Z [err] WARN deprecated [email protected]: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0`

nandinho84 avatar Jul 04 '20 08:07 nandinho84

These are warnings from the dependency packages, does it work?

guidone avatar Jul 09 '20 06:07 guidone

No, it doesn't work. These may be just warnings, but in the end it doesn't install the node

nandinho84 avatar Jul 13 '20 09:07 nandinho84

I've tried HA just once, then thrown away, I don't like it. HA is is running Node-RED inside a docker container, when installing a npm package the install process is done inside the docker container (which is the wrong way of using docker). The problem here is that some npm packages used by RedBot requires the compilation of native libraries but the container used by HA doesn't have the gcc addon available in the container. I don't remember where to put this param in HA but it should be somewhere

guidone avatar Jul 13 '20 09:07 guidone

In the node configuration you can add:

system_packages:
  - make
  - g++
  - gcc
  - python3
  - linux-headers

then nodes using nodegyp should work in hassio

fgather avatar Aug 29 '20 16:08 fgather