Have you checked the more detailed install debug log? Certainly that error doesn't really tell us much.
What version of Rasbian are you using?
Have you checked the more detailed install debug log? Certainly that error doesn't really tell us much.
What version of Rasbian are you using?
I'm using the Pi 3 B
I'm not sure what you need from the log. I'm not able the share the whole log, because it have more than 77k characters
You say you tried all the solutions, but then show the method that we know doesn't work. What happens if you do as recommended in the preceding posts
npm install --unsafe-perm https://github.com/nielsnl68/node-red-contrib-i2c
yes, you're right. but I also tried this solution:
pi@raspberrypi:~/.node-red $ npm install --unsafe-perm https://github.com/nielsnl68/node-red-contrib-i2c
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://github.com/nielsnl68/node-red-contrib-i2c.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2020-03-02T21_38_32_717Z-debug.log
That is because you need git installed
sudo apt install git
guys you're awesome.
thx a lot
hey vlturner,
if you can't install the node-red-contrib-i2c(fails).
I had these kinds of problems too, before you install anything.
first of all, if you have node-red-contrib-i2 modules inside your node_modules -> delete it.
You should have these 3 modules in side your "node_modules"
If you don't have them inside your .node-red->node_modules, then put them inside there.
After that, you can download the "node-red-contrib-i2c" module from the Manange palette.
link to the 3 modules -> https://github.com/tenzinlote/i2c_install
Best regards,
Tenzin Lote
Do you mean that you should manually install those modules before trying to install i2c?
yes, only the 3 modules
If the node needs those modules then they should be declared as dependencies in the node's package.json, then they would be automatically installed. If they are not it would be good to raise an issue on the node's github page.
Colin does the link you provided not long ago not work anymore ?
Sorry, which link?
This one from Mar 2- Node-red-contrib-i2c fails to install
@tenzinlote appeared to be suggesting that in addition it is necessary to manually install the modules he mentioned.
hi, I am a novice user of nodered, I am using a raspberry pi3 model B, I have run the setup of nodered as indicated on the site; I have a series of I2C sensors, but from what I could understand I2C + NodeRed + raspberry there is no way but to develop a new addon, possible? what you see around, node-red-contrib-i2c practically doesn't work with the latest versions of nodered and you would have to jump through hoops to make it work, possible? in the meantime I have removed nodered and I am using python directly for my application, but it seems a real shame, thanks, Gianluca
You should be able to solve this by calling the python code from node red.
Hi All - Thanks to Niels I have managed to get this node updated to use the latest i2c-bus package underneath - so this should now install directly just fine. Hopefully that should now compile ok for node10 and 12 (and hopefully 14... fingers crossed)
Now on flows as v0.6.0
Brilliant !!!!!!!
It's great news that it is being brought in directly under the oversight of NodeRED folks. I use those nodes allot.
Some of the initial improvements for a v0.6.1 would be to just to augment the documentation with a few use case scenarios. It took some struggling, but eventually myself and others did learn how to exploit this node to do nice things. (particularly with the Atlas-Sci EZO circuits).
Pull requests now gratefully accepted so feel free to write some docs