I have problem on installing the node ina219 on raspberry

2024-01-01T00:02:58.822Z Install : node-red-contrib-easybotics-ina219-sensor 0.7.6

2024-01-01T00:02:59.626Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-easybotics-ina219-sensor@0.7.6
2024-01-01T00:03:00.682Z [err] npm
2024-01-01T00:03:00.683Z [err] WARN
2024-01-01T00:03:00.683Z [err] config production Use --omit=dev instead.
2024-01-01T00:03:10.275Z [err] npm
2024-01-01T00:03:10.276Z [err]
2024-01-01T00:03:10.276Z [err] ERR! code 1
2024-01-01T00:03:10.277Z [err] npm
2024-01-01T00:03:10.277Z [err] ERR! path /home/leopard/.node-red/node_modules/i2c-bus
2024-01-01T00:03:10.283Z [err] npm
2024-01-01T00:03:10.283Z [err]
2024-01-01T00:03:10.284Z [err] ERR!
2024-01-01T00:03:10.284Z [err] command failed
2024-01-01T00:03:10.284Z [err] npm
2024-01-01T00:03:10.284Z [err] ERR! command sh -c node-gyp rebuild
2024-01-01T00:03:10.285Z [err] npm
2024-01-01T00:03:10.286Z [err] ERR!
2024-01-01T00:03:10.286Z [err] gyp info it worked if it ends with ok
2024-01-01T00:03:10.286Z [err] npm ERR! gyp info using node-gyp@3.8.0
2024-01-01T00:03:10.286Z [err] npm ERR! gyp info using node@18.19.0 | linux | arm64
2024-01-01T00:03:10.286Z [err] npm ERR!
2024-01-01T00:03:10.286Z [err] gyp ERR! configure error
2024-01-01T00:03:10.286Z [err] npm ERR! gyp ERR! stack Error: Command failed: /usr/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3];
2024-01-01T00:03:10.286Z [err] npm ERR!
2024-01-01T00:03:10.299Z [err] gyp ERR! stack File "", line 1
2024-01-01T00:03:10.299Z [err] npm
2024-01-01T00:03:10.299Z [err] ERR! gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
2024-01-01T00:03:10.299Z [err] npm ERR! gyp ERR! stack ^
2024-01-01T00:03:10.299Z [err] npm ERR! gyp ERR! stack SyntaxError: invalid syntax
2024-01-01T00:03:10.299Z [err] npm ERR! gyp ERR! stack
2024-01-01T00:03:10.299Z [err] npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:422:12)
2024-01-01T00:03:10.299Z [err] npm ERR!
2024-01-01T00:03:10.300Z [err] gyp ERR! stack at ChildProcess.emit (node:events:517:28)
2024-01-01T00:03:10.300Z [err] npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1098:16)
2024-01-01T00:03:10.300Z [err] npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:303:5)
2024-01-01T00:03:10.300Z [err] npm ERR! gyp ERR! System Linux 6.1.21-v8+
2024-01-01T00:03:10.300Z [err] npm ERR!
2024-01-01T00:03:10.300Z [err] gyp ERR! command "/usr/bin/node" "/home/leopard/.node-red/node_modules/.bin/node-gyp" "rebuild"
2024-01-01T00:03:10.300Z [err] npm ERR! gyp ERR! cwd /home/leopard/.node-red/node_modules/i2c-bus
2024-01-01T00:03:10.300Z [err] npm ERR! gyp ERR! node -v v18.19.0
2024-01-01T00:03:10.300Z [err] npm ERR! gyp ERR! node-gyp -v v3.8.0
2024-01-01T00:03:10.300Z [err] npm ERR! gyp ERR! not ok
2024-01-01T00:03:10.309Z [err]
2024-01-01T00:03:10.310Z [err] npm ERR!
2024-01-01T00:03:10.310Z [err] A complete log of this run can be found in: /home/leopard/.npm/_logs/2024-01-01T00_03_00_554Z-debug-0.log
2024-01-01T00:03:10.344Z rc=1

Are you able to install other nodes?

This bug was reported on the node's GitHub page back in November of 2022 and was never addressed by the author. Seeing that it hasn't been updated in 4 years. I would assume the node is abandoned.

Searching the forum, this thread might help:

1 Like