nodejs v11 seems to break pigpio
Having a heck of a time installing nodejs according to the instructions, which seems to boil down to node v11.0.0 being installed, which causes pigpio to not get installed properly for some reason. Can you confirm on your setup which version of node you have installed?
Now trying to fall back to basic Raspbian, without any npm or node installed. Then will try to move up and get it all installed again.
Well after a bunch of poking around, I finally got it to install. I had to do a whole bunch of stuff.
The real trick turned out to be:
sudo npm install node@v10 sudo npm install --unsafe-perm --verbose -g node-gyp cd drawbot npm install pigpio
I couldn't install it globally, etc. It was a total pain. Once I get another PI Zero, I'll try to actually document the steps I had to take. Also, the latest version of nodejs is now v11.0.0, so maybe updating the instructions to force the tested version for the install would be better?
Thanks for the software, it's now running and I'll be able to test my wiring better now.
Hi John
It has been ages, but have you found a working solution? I am somewhat stumped, although I am not surprised since I am a Pi-diot
Sorry, I haven't touched this project in quite a while, been distracted with ATTiny85 hacking lately. Did you try my "npm install node@v10' trick? I'll have to see if I can fire up my PiZero again and see what the status really is these days. It might also be that newer versions of node have fixed this issue.
John
I doubt newer versions fixed it, as I ran into startup troubles using the documented step by step. It is then that I started looking around, and found your issue. Thanks anyway, it was worth a shot. Now I'll just fox-terrier it.
Stay safe!
The Cannot read property 'botID' of undefined error is caused by an errant comma on line 36 of the config.json file. The code works when the comma is removed.
Yes! That was it! Now the code runs like a charm. Thank you.