Node Red, I2c, RPi, probleem installing 'node-red-contrib-i2c'

Hey,

I try to install ‘node-red-contrib-i2c’ but get error. Can someone help me ?

Errorlog :


2022-11-05T07:59:51.524Z Install : node-red-contrib-i2c 0.9.0

2022-11-05T07:59:52.204Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]

2022-11-05T07:59:53.905Z [err] npm

2022-11-05T07:59:53.907Z [err] WARN

2022-11-05T07:59:53.908Z [err] config production Use --omit=dev instead.

2022-11-05T08:00:00.013Z [err] npm

2022-11-05T08:00:00.014Z [err] ERR!

2022-11-05T08:00:00.014Z [err] code 1

2022-11-05T08:00:00.014Z [err] npm ERR!

2022-11-05T08:00:00.015Z [err] path

2022-11-05T08:00:00.015Z [err] /config/node-red/node_modules/i2c-bus

2022-11-05T08:00:00.021Z [err] npm ERR!

2022-11-05T08:00:00.022Z [err] command failed

2022-11-05T08:00:00.022Z [err] npm ERR!

2022-11-05T08:00:00.022Z [err] command sh -c node-gyp rebuild

2022-11-05T08:00:00.022Z [err] npm ERR!

2022-11-05T08:00:00.023Z [err] make: Entering directory ‘/config/node-red/node_modules/i2c-bus/build’

2022-11-05T08:00:00.023Z [err] npm ERR!

2022-11-05T08:00:00.023Z [err] CXX(target) Release/obj.target/i2c/src/i2c.o

2022-11-05T08:00:00.023Z [err] npm ERR! make: Leaving directory ‘/config/node-red/node_modules/i2c-bus/build’

2022-11-05T08:00:00.024Z [err] npm ERR!

2022-11-05T08:00:00.024Z [err] gyp info it worked if it ends with ok

2022-11-05T08:00:00.024Z [err] npm ERR!

2022-11-05T08:00:00.024Z [err] gyp info using [email protected]

2022-11-05T08:00:00.024Z [err] npm ERR! gyp info using [email protected] | linux | arm64

2022-11-05T08:00:00.024Z [err] npm

2022-11-05T08:00:00.024Z [err] ERR! gyp info find Python using Python version 3.10.5 found at “/usr/bin/python3”

2022-11-05T08:00:00.024Z [err] npm ERR! gyp info spawn /usr/bin/python3

2022-11-05T08:00:00.024Z [err] npm

2022-11-05T08:00:00.024Z [err] ERR! gyp info spawn args [

2022-11-05T08:00:00.024Z [err] npm ERR! gyp info spawn args ‘/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py’,

2022-11-05T08:00:00.024Z [err] npm ERR! gyp info spawn args ‘binding.gyp’,

2022-11-05T08:00:00.024Z [err] npm

2022-11-05T08:00:00.025Z [err] ERR! gyp info spawn args ‘-f’,

2022-11-05T08:00:00.025Z [err] npm ERR!

2022-11-05T08:00:00.025Z [err] gyp info spawn args ‘make’,

2022-11-05T08:00:00.025Z [err] npm ERR! gyp info spawn args ‘-I’,

2022-11-05T08:00:00.025Z [err] npm ERR! gyp info spawn args ‘/config/node-red/node_modules/i2c-bus/build/config.gypi’,

2022-11-05T08:00:00.025Z [err] npm

2022-11-05T08:00:00.025Z [err] ERR! gyp info spawn args ‘-I’,

2022-11-05T08:00:00.025Z [err] npm ERR!

2022-11-05T08:00:00.025Z [err] gyp info spawn args ‘/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi’,

2022-11-05T08:00:00.025Z [err] npm ERR! gyp info spawn args ‘-I’,

2022-11-05T08:00:00.025Z [err] npm

2022-11-05T08:00:00.025Z [err] ERR! gyp info spawn args ‘/root/.cache/node-gyp/16.17.1/include/node/common.gypi’,

2022-11-05T08:00:00.025Z [err] npm

2022-11-05T08:00:00.026Z [err] ERR! gyp info spawn args ‘-Dlibrary=shared_library’,

2022-11-05T08:00:00.026Z [err] npm ERR!

2022-11-05T08:00:00.026Z [err] gyp info spawn args ‘-Dvisibility=default’,

2022-11-05T08:00:00.026Z [err] npm ERR! gyp info spawn args ‘-Dnode_root_dir=/root/.cache/node-gyp/16.17.1’,

2022-11-05T08:00:00.026Z [err] npm ERR! gyp info spawn args ‘-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp’,

2022-11-05T08:00:00.026Z [err] npm

2022-11-05T08:00:00.026Z [err] ERR! gyp info spawn args ‘-Dnode_lib_file=/root/.cache/node-gyp/16.17.1/<(target_arch)/node.lib’,

2022-11-05T08:00:00.026Z [err] npm ERR!

2022-11-05T08:00:00.026Z [err] gyp info spawn args ‘-Dmodule_root_dir=/config/node-red/node_modules/i2c-bus’,

2022-11-05T08:00:00.026Z [err] npm ERR! gyp info spawn args ‘-Dnode_engine=v8’,

2022-11-05T08:00:00.026Z [err] npm ERR! gyp info spawn args ‘–depth=.’,

2022-11-05T08:00:00.026Z [err] npm

2022-11-05T08:00:00.026Z [err] ERR! gyp info spawn args ‘–no-parallel’,

2022-11-05T08:00:00.026Z [err] npm ERR!

2022-11-05T08:00:00.027Z [err] gyp info spawn args ‘–generator-output’,

2022-11-05T08:00:00.027Z [err] npm ERR! gyp info spawn args ‘build’,

2022-11-05T08:00:00.027Z [err] npm

2022-11-05T08:00:00.027Z [err] ERR! gyp info spawn args ‘-Goutput_dir=.’

2022-11-05T08:00:00.027Z [err] npm ERR! gyp info spawn args ]

2022-11-05T08:00:00.027Z [err] npm ERR! gyp info spawn make

2022-11-05T08:00:00.027Z [err] npm

2022-11-05T08:00:00.027Z [err] ERR! gyp info spawn args [ ‘BUILDTYPE=Release’, ‘-C’, ‘build’ ]

2022-11-05T08:00:00.027Z [err] npm ERR!

2022-11-05T08:00:00.027Z [err] make: g++: No such file or directory

2022-11-05T08:00:00.027Z [err] npm ERR!

2022-11-05T08:00:00.027Z [err] make: *** [i2c.target.mk:111: Release/obj.target/i2c/src/i2c.o] Error 127

2022-11-05T08:00:00.027Z [err] npm ERR! gyp ERR! build error

2022-11-05T08:00:00.027Z [err] npm

2022-11-05T08:00:00.027Z [err] ERR! gyp ERR! stack Error: make failed with exit code: 2

2022-11-05T08:00:00.027Z [err] npm ERR!

2022-11-05T08:00:00.028Z [err] gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)

2022-11-05T08:00:00.028Z [err] npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)

2022-11-05T08:00:00.028Z [err] npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)

2022-11-05T08:00:00.028Z [err] npm

2022-11-05T08:00:00.028Z [err] ERR! gyp ERR! System Linux 5.15.61-v8

2022-11-05T08:00:00.028Z [err] npm ERR!

2022-11-05T08:00:00.028Z [err] gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”

2022-11-05T08:00:00.028Z [err] npm ERR! gyp ERR! cwd /config/node-red/node_modules/i2c-bus

2022-11-05T08:00:00.028Z [err] npm ERR! gyp ERR! node -v v16.17.1

2022-11-05T08:00:00.028Z [err] npm

2022-11-05T08:00:00.028Z [err] ERR! gyp ERR! node-gyp -v v9.0.0

2022-11-05T08:00:00.028Z [err] npm ERR!

2022-11-05T08:00:00.028Z [err] gyp ERR! not ok

2022-11-05T08:00:00.036Z [err]

2022-11-05T08:00:00.036Z [err] npm ERR!

2022-11-05T08:00:00.037Z [err] A complete log of this run can be found in:

2022-11-05T08:00:00.037Z [err] npm ERR! /root/.npm/_logs/2022-11-05T07_59_53_761Z-debug-0.log

2022-11-05T08:00:00.057Z rc=1