Node-red-contrib-pca9685 0.1.4 fall

2022-03-12T21:15:52.565Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-pca9685@0.1.4
2022-03-12T21:16:18.245Z [err] npm
2022-03-12T21:16:18.248Z [err]
2022-03-12T21:16:18.249Z [err] ERR!
2022-03-12T21:16:18.250Z [err]
2022-03-12T21:16:18.250Z [err] code
2022-03-12T21:16:18.251Z [err] 1
2022-03-12T21:16:18.255Z [err] npm
2022-03-12T21:16:18.256Z [err]
2022-03-12T21:16:18.256Z [err] ERR!
2022-03-12T21:16:18.257Z [err]
2022-03-12T21:16:18.258Z [err] path
2022-03-12T21:16:18.258Z [err] /config/node-red/node_modules/i2c-bus
2022-03-12T21:16:18.276Z [err] npm
2022-03-12T21:16:18.277Z [err]
2022-03-12T21:16:18.280Z [err] ERR!
2022-03-12T21:16:18.286Z [err] command failed
2022-03-12T21:16:18.286Z [err] npm ERR! command sh -c node-gyp rebuild
2022-03-12T21:16:18.286Z [err] npm ERR! gyp info it worked if it ends with ok
2022-03-12T21:16:18.286Z [err] npm ERR!
2022-03-12T21:16:18.287Z [err] gyp info using node-gyp@9.0.0
2022-03-12T21:16:18.287Z [err] npm ERR!
2022-03-12T21:16:18.287Z [err] gyp info using node@16.14.0 | linux | arm64
2022-03-12T21:16:18.287Z [err] npm ERR! gyp info find Python using Python version 3.9.7 found at "/usr/bin/python3"
2022-03-12T21:16:18.287Z [err] npm
2022-03-12T21:16:18.288Z [err] ERR! gyp info spawn /usr/bin/python3
2022-03-12T21:16:18.288Z [err] npm ERR!
2022-03-12T21:16:18.288Z [err] gyp info spawn args [
2022-03-12T21:16:18.288Z [err] npm ERR!
2022-03-12T21:16:18.288Z [err] gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
2022-03-12T21:16:18.288Z [err] npm ERR! gyp info spawn args 'binding.gyp',
2022-03-12T21:16:18.289Z [err] npm ERR! gyp info spawn args '-f',
2022-03-12T21:16:18.289Z [err] npm
2022-03-12T21:16:18.289Z [err] ERR! gyp info spawn args 'make',
2022-03-12T21:16:18.289Z [err] npm ERR! gyp info spawn args '-I',
2022-03-12T21:16:18.290Z [err] npm ERR! gyp info spawn args '/config/node-red/node_modules/i2c-bus/build/config.gypi',
2022-03-12T21:16:18.290Z [err] npm
2022-03-12T21:16:18.290Z [err] ERR! gyp info spawn args '-I',
2022-03-12T21:16:18.290Z [err] npm ERR!
2022-03-12T21:16:18.290Z [err] gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
2022-03-12T21:16:18.290Z [err] npm ERR!
2022-03-12T21:16:18.291Z [err] gyp info spawn args '-I',
2022-03-12T21:16:18.291Z [err] npm ERR!
2022-03-12T21:16:18.291Z [err] gyp info spawn args '/root/.cache/node-gyp/16.14.0/include/node/common.gypi',
2022-03-12T21:16:18.291Z [err] npm ERR! gyp info spawn args '-Dlibrary=shared_library',
2022-03-12T21:16:18.291Z [err] npm
2022-03-12T21:16:18.291Z [err] ERR! gyp info spawn args '-Dvisibility=default',
2022-03-12T21:16:18.291Z [err] npm
2022-03-12T21:16:18.291Z [err] ERR! gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/16.14.0',
2022-03-12T21:16:18.291Z [err] npm ERR!
2022-03-12T21:16:18.292Z [err] gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
2022-03-12T21:16:18.292Z [err] npm ERR!
2022-03-12T21:16:18.292Z [err] gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/16.14.0/<(target_arch)/node.lib',
2022-03-12T21:16:18.292Z [err] npm ERR! gyp info spawn args '-Dmodule_root_dir=/config/node-red/node_modules/i2c-bus',
2022-03-12T21:16:18.292Z [err] npm ERR! gyp info spawn args '-Dnode_engine=v8',
2022-03-12T21:16:18.292Z [err] npm
2022-03-12T21:16:18.293Z [err] ERR! gyp info spawn args '--depth=.',
2022-03-12T21:16:18.293Z [err] npm
2022-03-12T21:16:18.298Z [err] ERR! gyp info spawn args '--no-parallel',
2022-03-12T21:16:18.298Z [err] npm ERR! gyp info spawn args '--generator-output',
2022-03-12T21:16:18.298Z [err] npm ERR! gyp info spawn args 'build',
2022-03-12T21:16:18.298Z [err] npm ERR! gyp info spawn args '-Goutput_dir=.'
2022-03-12T21:16:18.298Z [err] npm ERR! gyp info spawn args ]
2022-03-12T21:16:18.298Z [err] npm ERR! gyp ERR! build error
2022-03-12T21:16:18.298Z [err] npm ERR! gyp ERR! stack Error: not found: make
2022-03-12T21:16:18.298Z [err] npm ERR! gyp ERR! stack at getNotFoundError (/usr/local/lib/node_modules/npm/node_modules/which/which.js:10:17)
2022-03-12T21:16:18.298Z [err] npm ERR! gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:57:18
2022-03-12T21:16:18.298Z [err] npm ERR! gyp ERR! stack at new Promise ()
2022-03-12T21:16:18.298Z [err] npm ERR! gyp ERR! stack at step (/usr/local/lib/node_modules/npm/node_modules/which/which.js:54:21)
2022-03-12T21:16:18.298Z [err] npm ERR! gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:71:22
2022-03-12T21:16:18.298Z [err] npm ERR! gyp ERR! stack at new Promise ()
2022-03-12T21:16:18.298Z [err] npm ERR! gyp ERR! stack at subStep (/usr/local/lib/node_modules/npm/node_modules/which/which.js:69:33)
2022-03-12T21:16:18.298Z [err] npm ERR! gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:80:22
2022-03-12T21:16:18.298Z [err] npm ERR! gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/isexe/index.js:42:5
2022-03-12T21:16:18.298Z [err] npm ERR! gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
2022-03-12T21:16:18.298Z [err] npm
2022-03-12T21:16:18.300Z [err] ERR! gyp ERR! System Linux 5.10.92-v8+
2022-03-12T21:16:18.300Z [err] npm ERR! gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2022-03-12T21:16:18.300Z [err] npm ERR! gyp ERR! cwd /config/node-red/node_modules/i2c-bus
2022-03-12T21:16:18.300Z [err] npm ERR! gyp ERR! node -v v16.14.0
2022-03-12T21:16:18.300Z [err] npm ERR! gyp ERR! node-gyp -v v9.0.0
2022-03-12T21:16:18.300Z [err] npm ERR! gyp ERR! not ok
2022-03-12T21:16:18.331Z [err]
2022-03-12T21:16:18.331Z [err] npm
2022-03-12T21:16:18.332Z [err] ERR! A complete log of this run can be found in:
2022-03-12T21:16:18.332Z [err] npm ERR! /root/.npm/_logs/2022-03-12T21_15_54_333Z-debug-0.log
2022-03-12T21:16:18.415Z rc=1

Welcome to the forum @ld202167

The key error is
2022-03-12T21:16:18.298Z [err] npm ERR! gyp ERR! stack Error: not found: make
That suggests you have not installed the build tools. How to do that depends on your OS, but it may be something like
sudo apt install build-essential

It's not this problem. I know that all kinds of methods still fail

If make is not installed then that is most definitely a problem that will make installations fail. How do you know that make is installed?

What OS and hardware are you running on and how did you install node red?

Using hasio installed by docker under raspberry pie system sounds a little messy
Node red built under homeassistant

I tried to install in node red cli mode
The error code is erro code 1

This plug-in seems too cumbersome to use

Uninstall the hassio node-red plugin then run the install script from the node-red docs to install node-red natively on the pi. Running on Raspberry Pi : Node-RED

1 Like

Because of the linkage of the system, if node red is reinstalled. The linkage effect can be achieved by installing a homeassistant plug-in in node red. Is that right? Thank you, my friend!!

thank you very much!

When you said that I assumed that you meant that you wanted to install node red not using the plugin.

I don't know how to communicate with HA from a native install of node-red, other than using MQTT, for example.

Your original problem was because you are running in Docker and the build tools were not present in the Docker environment (I assume). I don't know how to solve that problem with the HA plugin. Probably an HA forum would be able to help.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.