# NPM Issues after Beacon Scanner Installed

**URL:** <https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891>\
**Category:** General\
**Created:** [27 January 2020 01:44 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891 "2020-01-27T01:44:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![314PITester](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/314pitester/32/89258_2.png) [@314PITester](https://discourse.nodered.org/u/314PITester)\
**Post date:** [27 January 2020 01:44 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/1 "2020-01-27T01:44:30Z")

</div>

Hey guys,

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.

Here is the error that is common in the threads.

2020-01-27T01:17:06.466Z Install : node-red-contrib-timerswitch 1.2.4

2020-01-27T01:17:06.490Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-timerswitch@1.2.4  
2020-01-27T01:17:15.331Z [err] npm  
2020-01-27T01:17:15.332Z [err] ERR! code EISGIT  
2020-01-27T01:17:15.332Z [err] npm ERR! path /home/pi/.node-red/node\_modules/node-red-contrib-beacon-scanner  
2020-01-27T01:17:15.335Z [err] npm  
2020-01-27T01:17:15.336Z [err] ERR! git /home/pi/.node-red/node\_modules/node-red-contrib-beacon-scanner: Appears to be a git repo or submodule.  
2020-01-27T01:17:15.336Z [err] npm ERR! git /home/pi/.node-red/node\_modules/node-red-contrib-beacon-scanner  
2020-01-27T01:17:15.336Z [err] npm  
2020-01-27T01:17:15.336Z [err] ERR! git Refusing to remove it. Update manually,  
2020-01-27T01:17:15.336Z [err] npm ERR!  
2020-01-27T01:17:15.336Z [err] git or move it out of the way first.  
2020-01-27T01:17:15.354Z [err]  
2020-01-27T01:17:15.355Z [err] npm ERR!  
2020-01-27T01:17:15.355Z [err] A complete log of this run can be found in:  
2020-01-27T01:17:15.355Z [err] npm ERR! /home/pi/.npm/\_logs/2020-01-27T01\_17\_15\_341Z-debug.log  
2020-01-27T01:17:15.372Z rc=1

PI is running Buster  
NPM is 6.13.6  
Node is 12.14.1

Thanks for any suggestions or help

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [27 January 2020 10:16 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/2 "2020-01-27T10:16:46Z")

</div>

did you install the [prerequisites](https://flows.nodered.org/node/node-red-contrib-beacon-scanner)?

---

<div class="post-metadata">

**Author:** ![314PITester](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/314pitester/32/89258_2.png) [@314PITester](https://discourse.nodered.org/u/314PITester)\
**Post date:** [27 January 2020 23:09 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/3 "2020-01-27T23:09:44Z")

</div>

Yes sir. The node functions fine at any point I install it. My only issue is once I do I can't install any others.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [28 January 2020 00:00 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/4 "2020-01-28T00:00:24Z")

</div>

Well I recreated your problem. I suggest you open an issue in GitHub against node-red-beacon-scanner.

---

<div class="post-metadata">

**Author:** ![314PITester](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/314pitester/32/89258_2.png) [@314PITester](https://discourse.nodered.org/u/314PITester)\
**Post date:** [28 January 2020 00:14 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/5 "2020-01-28T00:14:54Z")

</div>

Thank you for checking into this. Getting a second set of eyes is always helpful. They either confirm the problem or correct you. 🙂

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 January 2020 07:14 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/6 "2020-01-28T07:14:55Z")

</div>

> [@314PITester](#):
>
> /home/pi/.node-red/node\_modules/node-red-contrib-beacon-scanner: Appears to be a git repo or submodule.

Is there a .git folder in there? If so then that is the problem. Delete it.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [28 January 2020 08:49 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/7 "2020-01-28T08:49:28Z")

</div>

This is a known issue with the node. [https://github.com/joeldavidw/node-red-contrib-beacon-scanner/issues/6](https://github.com/joeldavidw/node-red-contrib-beacon-scanner/issues/6)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 January 2020 09:51 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/8 "2020-01-28T09:51:49Z")

</div>

> [@314PITester](#):
>
> even trying this (‘rm -rf node\_modules/\*/.git/‘)

I wonder whether @314PITester did not `cd .node-red` before doing the above.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [28 January 2020 10:27 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/9 "2020-01-28T10:27:00Z")

</div>

I did install it while in the .node-red folder and encountered the same issue

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 January 2020 10:45 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/10 "2020-01-28T10:45:24Z")

</div>

I meant that he/she was not in the .node-red folder when running `rm -rf node_modules/*/.git/`

---

<div class="post-metadata">

**Author:** ![314PITester](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/314pitester/32/89258_2.png) [@314PITester](https://discourse.nodered.org/u/314PITester)\
**Post date:** [28 January 2020 14:21 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/11 "2020-01-28T14:21:47Z")

</div>

I go by a lot of things, if you ask my friends. So "He" is fine. 🙂

I did run that command under .node-red. Thanks for checking though.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 January 2020 14:38 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/12 "2020-01-28T14:38:18Z")

</div>

Have you checked whether there is a .git folder in /home/pi/.node-red/node\_modules/node-red-contrib-beacon-scanner?

---

<div class="post-metadata">

**Author:** ![314PITester](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/314pitester/32/89258_2.png) [@314PITester](https://discourse.nodered.org/u/314PITester)\
**Post date:** [28 January 2020 14:52 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/13 "2020-01-28T14:52:04Z")

</div>

I have and there is not.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 January 2020 14:59 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/14 "2020-01-28T14:59:00Z")

</div>

What does this command show?  
`find /home/pi/.node-red -name *.git`

---

<div class="post-metadata">

**Author:** ![314PITester](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/314pitester/32/89258_2.png) [@314PITester](https://discourse.nodered.org/u/314PITester)\
**Post date:** [28 January 2020 15:10 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/15 "2020-01-28T15:10:07Z")

</div>

pi@raspberrypi:~ $ find /home/pi/.node-red -name \*.git

pi@raspberrypi:~ $

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 January 2020 15:32 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/16 "2020-01-28T15:32:24Z")

</div>

Can you run the npm install that fails again please and copy/paste the full output including the command?

---

<div class="post-metadata">

**Author:** ![314PITester](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/314pitester/32/89258_2.png) [@314PITester](https://discourse.nodered.org/u/314PITester)\
**Post date:** [28 January 2020 15:46 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/17 "2020-01-28T15:46:22Z")

</div>

Actually left the house. I'll get back on this later tonight. I'll keep you posted.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [31 January 2020 21:48 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/18 "2020-01-31T21:48:25Z")

</div>

Did you get to the bottom of this?

---

<div class="post-metadata">

**Author:** ![314PITester](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/314pitester/32/89258_2.png) [@314PITester](https://discourse.nodered.org/u/314PITester)\
**Post date:** [31 January 2020 22:01 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/19 "2020-01-31T22:01:26Z")

</div>

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.

I plan on doing further testing later.

---

<div class="post-metadata">

**Author:** ![314PITester](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/314pitester/32/89258_2.png) [@314PITester](https://discourse.nodered.org/u/314PITester)\
**Post date:** [31 January 2020 22:45 UTC](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891/20 "2020-01-31T22:45:36Z")

</div>

But I just caused another issue, not related to this thread so I'll open another request.

I switched to a USB BLE dongle, and disabled then disabled the UART one.

```auto
dtoverlay=pi3-disable-bt

```

The UART one moved to HCI1 and the USB is HCI0, but both are running and my system is still using the UART (HCI1) one.

hci1: Type: Primary Bus: UART  
BD Address: B8:27:EB:AF:69:F8 ACL MTU: 1021:8 SCO MTU: 64:1  
UP RUNNING  
RX bytes:82124 acl:0 sco:0 events:2545 errors:0  
TX bytes:3119 acl:0 sco:0 commands:69 errors:0  
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87  
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3  
Link policy: RSWITCH SNIFF  
Link mode: SLAVE ACCEPT  
Name: 'raspberrypi #2'  
Class: 0x480000  
Service Classes: Capturing, Telephony  
Device Class: Miscellaneous,  
HCI Version: 5.0 (0x9) Revision: 0x122  
LMP Version: 5.0 (0x9) Subversion: 0x6119  
Manufacturer: Cypress Semiconductor Corporation (305)

hci0: Type: Primary Bus: USB  
BD Address: 5C:F3:70:98:61:1B ACL MTU: 1021:8 SCO MTU: 64:1  
UP RUNNING  
RX bytes:1554 acl:0 sco:0 events:81 errors:0  
TX bytes:2814 acl:0 sco:0 commands:81 errors:0  
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87  
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3  
Link policy: RSWITCH SNIFF  
Link mode: SLAVE ACCEPT  
Name: 'raspberrypi'  
Class: 0x480000  
Service Classes: Capturing, Telephony  
Device Class: Miscellaneous,  
HCI Version: 4.0 (0x6) Revision: 0x1000  
LMP Version: 4.0 (0x6) Subversion: 0x220e  
Manufacturer: Broadcom Corporation (15)

Verified this by turning down HCI1.

```auto
sudo hciconfig hci0 up

```

So now I'm trying to figure out how to BeaconScanner, and PI, to only use HCI0. 🙂

[Next page](https://discourse.nodered.org/t/npm-issues-after-beacon-scanner-installed/20891.md?page=2)
