Been using Raspberry PIs for various stuff for a while but I have current project I'm working on for around the house. I've been working on some IBeacon stuff using Beacon Scanner node. During my testing I find that I want different nodes so I usually just install them directly through NodeRed. However, every time I install Beacon Scanner it keeps breaking something in NPM that I can't install anything else after it and I also get the same error.
I’m sure the first question from you al might be “what do you mean by every time you install Beacon Scanner?” Well since I can't find a fix I keep having to resort back to my backup image and then install the nodes I want and install Beacon Scanner last. Since I’m testing out my flow for what I’m wanting to do I find a new node I want but I can't install it. So until I fully get my project done I’m not all sure what I will end up with therefore I don’t want to have to redo all my work at the end just so I can install Beacon Scanner last.
What I don't understand is what the actual issue is or how to fix it. I have found several things on different forums to delete the folders, resetting npm cache, or even trying this (‘rm -rf node_modules/*/.git/‘) found on github, and nothing so far seems allow me to install another node and I keep getting the same error. From what I can see this has been an issue with specific nodes for a several months now but I'm not seeing anything specific to Beacon Scanner, which is an assumption that the issue itself with the node and not NodeRed itself.
I know in the error log the current node I'm trying to install is TimerSwitch but I was also getting the error with Moment and others.
Sorry. Got tied up on a project for one of my clients.
In a round about way. I uninstalled that node and was able to install the other nodes I needed, then installed the node again. Now it is not giving me the error. So this was not the experience I was seeing before.
Even though it is working without an error now it does not solve the root problem that was happening. Since I'm up and working I have not reverted my PI back to the old image to start the process again.