# Node-red-contrib-tfjs-coco-ssd 1.0.6 download error

**URL:** https://discourse.nodered.org/t/node-red-contrib-tfjs-coco-ssd-1-0-6-download-error/99882
**Category:** General
**Created:** [7 December 2025 01:00 UTC](https://discourse.nodered.org/t/node-red-contrib-tfjs-coco-ssd-1-0-6-download-error/99882 "2025-12-07T01:00:36Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![PdeJ](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@PdeJ](https://discourse.nodered.org/u/PdeJ)
#### Post date: [7 December 2025 01:00 UTC](https://discourse.nodered.org/t/node-red-contrib-tfjs-coco-ssd-1-0-6-download-error/99882/1 "2025-12-07T01:00:36Z")

</div>

Unable to download node-red-contrib-tfjs-coco-ssd 1.0.6 from Node red Palette Manager.

```auto
2025-12-07T00:14:07.122Z Install : node-red-contrib-tfjs-coco-ssd 1.0.6

2025-12-07T00:14:07.611Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --omit=dev --engine-strict node-red-contrib-tfjs-coco-ssd@1.0.6

2025-12-07T00:16:03.288Z [err] Killed

2025-12-07T00:16:03.839Z rc=137

```

Similar error if trying to download from npm

```auto
node-red $ npm i node-red-contrib-tfjs-coco-ssd
npm error code ENOTEMPTY
npm error syscall rename
npm error path /home/pi/.node-red/node_modules/body-parser
npm error dest /home/pi/.node-red/node_modules/.body-parser-2MfwB2tK
npm error errno -39
npm error ENOTEMPTY: directory not empty, rename '/home/pi/.node-red/node_modules/body-parser' -> '/home/pi/.node-red/node_modules/.body-parser-2MfwB2tK'
npm error A complete log of this run can be found in: /home/pi/.npm/_logs/2025-12-07T00_48_12_036Z-debug-0.log

```

---

<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: [7 December 2025 10:05 UTC](https://discourse.nodered.org/t/node-red-contrib-tfjs-coco-ssd-1-0-6-download-error/99882/2 "2025-12-07T10:05:02Z")

</div>

> [@PdeJ](#):
>
> `npm error ENOTEMPTY: directory not empty, rename '/home/pi/.node-red/node_modules/body-parser' -> '/home/pi/.node-red/node_modules/.body-parser-2MfwB2tK'`

This is a problem that npm has occasionally, leaving temporary files lying around after a problem of some sort.  
Delete that folder, and any other similar ones in the node\_modules folder with a random string on the end such as the one in the error. Then try again in the command line so that we can see more easily if there is still a problem. Then restart node-red.

---

<div class="post-metadata">

### Author: ![PdeJ](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@PdeJ](https://discourse.nodered.org/u/PdeJ)
#### Post date: [7 December 2025 17:38 UTC](https://discourse.nodered.org/t/node-red-contrib-tfjs-coco-ssd-1-0-6-download-error/99882/3 "2025-12-07T17:38:16Z")

</div>

Thanks for your reply and I've followed through with your suggestions.

Deleted the following from node-modules

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/0/d0d2e00ec12512b87e1e8e5568934fa50561c331.png)  
Tried downloading again but no error message just killed.

```auto
pi@piZero2:~ $ npm i node-red-contrib-tfjs-coco-ssd
â ´Killed
pi@piZero2:~ $ 

```

I had successfully installed it a few days ago on piZero2 64 bit piOS Trixie, the only difference this time was that I had not only freshly installed the OS but also increased the swapable ram to 2.0Gi. Various other Node red nodes loaded without problems only the Coco-ssd failed.

```auto
pi@piZero2:~ $ free -h
               total used free shared buff/cache available
Mem: 416Mi 268Mi 131Mi 9.2Mi 81Mi 147Mi
Swap: 2.0Gi 246Mi 1.8Gi
pi@piZero2:~ $ swapon
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 2G 245.9M 100
pi@piZero2:~ $ 

```

So, for further testing I've commented-out the instructions for expanding the swap size in the /etc/rpi/swap.conf.d/80-custom-size.conf file that I use, but all to no avail:

```auto
pi@piZero2:~ $ swapon
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 416M 166.9M 100
pi@piZero2:~ $ sudo nano /etc/rpi/swap.conf.d/80-custom-size.conf

pi@piZero2:~ $ npm i node-red-contrib-tfjs-coco-ssd
â ™Killed
pi@piZero2:~ $ npm i node-red-contrib-tfjs-coco-ssd
npm error code ENOTEMPTY
npm error syscall rename
npm error path /home/pi/node_modules/accepts
npm error dest /home/pi/node_modules/.accepts-FE35LBXw
npm error errno -39
npm error ENOTEMPTY: directory not empty, rename '/home/pi/node_modules/accepts' -> '/home/pi/node_modules/.accepts-FE35LBXw'
npm error A complete log of this run can be found in: /home/pi/.npm/_logs/2025-12-07T17_24_55_262Z-debug-0.log
pi@piZero2:~ $ 

```

Incidentally removal of the empty `node-red-contrib-tfjs-coco-ssd` folder from the node\_modules overcame the "Killed" 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: [7 December 2025 18:15 UTC](https://discourse.nodered.org/t/node-red-contrib-tfjs-coco-ssd-1-0-6-download-error/99882/4 "2025-12-07T18:15:59Z")

</div>

Something is killing npm during the install, which is leaving the temporary folders so you get a different error next time round.

What do the commands  
`node -v`  
and  
`npm -v`  
give?

Have you run out of space on the SD card?  
How long does it take after starting the install the the Killed message appears?

Open two command windows and in one run  
`sudo tail -f /var/log/syslog`  
and run the install in the other (after removing the temporary files again). See if there are any error messages in syslog.  
If not then do the same again, but this time run  
`top`  
in the other window and watch to see if there is anything unusual. You would expect to see npm using all the processor for some time.

---

<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: [7 December 2025 18:18 UTC](https://discourse.nodered.org/t/node-red-contrib-tfjs-coco-ssd-1-0-6-download-error/99882/5 "2025-12-07T18:18:54Z")

</div>

> [@PdeJ](#):
>
> `/dev/zram0 partition 2G 245.9M 100`

You can't run a 2GB swap partition in RAM on a system with only 0.5GB of RAM. Setup swap on disc in the normal way.

---

<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: [7 December 2025 20:24 UTC](https://discourse.nodered.org/t/node-red-contrib-tfjs-coco-ssd-1-0-6-download-error/99882/6 "2025-12-07T20:24:55Z")

</div>

I have successfully installed it on a Zero. However, even if you managed to install it I suspect that a Zero will not have anywhere near enough power to do anything useful, though I have no direct evidence of this.

---

<div class="post-metadata">

### Author: ![PdeJ](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@PdeJ](https://discourse.nodered.org/u/PdeJ)
#### Post date: [7 December 2025 22:10 UTC](https://discourse.nodered.org/t/node-red-contrib-tfjs-coco-ssd-1-0-6-download-error/99882/7 "2025-12-07T22:10:53Z")

</div>

> [@Colin](#):
>
> You can't run a 2GB swap partition in RAM on a system with only 0.5GB of RAM. Setup swap on disc in the normal way.

My SD card has 21Gb free memory. I have previously found that flows using the coco-ssd node would run OK for a while on a piZero2, but then crash. I perhaps naively considered that this may be due to the node being so resource hungry and that it uses up the physical RAM and even exceeds the default swap memory of 100Mb on Bookworm (which I increased to 1Gb using `diphys-swapfile`. Hence now when using Trixie the decision was to see if reliability of the flow could be improved by increasing the size of the swapable RAM beyond that of the physical RAM on the piZero2 to 2Gb. Trixie uses` /etc/rpi/swap.conf` or configuration snippets in the `/etc/rpi/swap.conf.d/` directory to control swap size. I am aware that the swapsize is often recommended at 1.5 to 2x the physical ram, so maybe 2Gb was over zealous, but even after altering the configuration snippets back to the default size, and rebooting, coco-ssd failed to install.

---

<div class="post-metadata">

### Author: ![PdeJ](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@PdeJ](https://discourse.nodered.org/u/PdeJ)
#### Post date: [7 December 2025 22:20 UTC](https://discourse.nodered.org/t/node-red-contrib-tfjs-coco-ssd-1-0-6-download-error/99882/8 "2025-12-07T22:20:23Z")

</div>

> [@Colin](#):
>
> What do the commands  
> `node -v`  
> and  
> `npm -v`

```auto
pi@piZero2:~ $ node =v
node:internal/modules/cjs/loader:1210
  throw err;
  ^

Error: Cannot find module '/home/pi/=v'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1207:15)
    at Module._load (node:internal/modules/cjs/loader:1038:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.19.6
pi@piZero2:~ $ npm -v
10.8.2

```

---

<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: [8 December 2025 08:27 UTC](https://discourse.nodered.org/t/node-red-contrib-tfjs-coco-ssd-1-0-6-download-error/99882/9 "2025-12-08T08:27:30Z")

</div>

@PdeJ you used ‘node =v’ it should be ‘node -v’

---

<div class="post-metadata">

### Author: ![PdeJ](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@PdeJ](https://discourse.nodered.org/u/PdeJ)
#### Post date: [8 December 2025 09:02 UTC](https://discourse.nodered.org/t/node-red-contrib-tfjs-coco-ssd-1-0-6-download-error/99882/10 "2025-12-08T09:02:11Z")

</div>

OK stopped fiddling with swap and successfully installed coco-ssd on a pristine pi OS 64bit Trixie. 😃 However, I do get this warning `2025-12-08 07:39:02.085374: W tensorflow/core/framework/cpu_allocator_impl.cc:82] Allocation of 8640000 exceeds 10% of free system memory.`

The scenario that I am using your node is as follows. I have a raspberry pi Zero with a picam running motionEye. Another raspberry pi runs the main flows and when the rpi with the picam saves a motion file the rpi with the main flow is notified via a webhook from motionEye. The main flow then extracts the url for the still image on the picam rpi and sends url via an MQTT link to the rpi Zero 2 to analyse the image. The objective is to only receive notifications on my mobile of images containing people, as previously I was getting notifications every time a cloud cast a shadow!

Well, it seems to be working for the time-being 🙂  
`

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [8 December 2025 09:13 UTC](https://discourse.nodered.org/t/node-red-contrib-tfjs-coco-ssd-1-0-6-download-error/99882/11 "2025-12-08T09:13:53Z")

</div>

> [@PdeJ](#):
>
> OK stopped fiddling with swap

I have usually set up zram on my Zero 2s, but it looks like it's installed by default on Trixie?

I installed node-red-contrib-tfjs-coco-ssd "successfully" on a Pi via npm.  
There were a shed-load of errors, enough to convince me not to use it.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/3/a307195135a3694170228a39e67ac306bf45a1cf.png)

---

<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: [8 December 2025 16:48 UTC](https://discourse.nodered.org/t/node-red-contrib-tfjs-coco-ssd-1-0-6-download-error/99882/12 "2025-12-08T16:48:02Z")

</div>

> [@jbudd](#):
>
> I have usually set up zram on my Zero 2s,

Does it make sense to have swap in RAM when you have so little RAM in the first place?

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [8 December 2025 17:53 UTC](https://discourse.nodered.org/t/node-red-contrib-tfjs-coco-ssd-1-0-6-download-error/99882/13 "2025-12-08T17:53:21Z")

</div>

Yes it does, but I don't really understand how.

Apparently the zram drive is compressed, thus offering more space than expected, at the cost of extra CPU usage.  
Generally on a small Pi I have a couple of CPU cores doing nothing so this is no loss.

Swapping is faster since no SD card access is involved, and the setup greatly increases swappiness, making more of the available memory free at any one time.

The setup script allocates 50% of RAM to swap space, leaving just 0.25GB on the Zero2

This is a zero 2 running Bookworm and zram. It has the standard /dev/swap, almost never used, plus zram in memory.

```auto
pi@Zero2Pink:~ $ free -h
               total used free shared buff/cache available
Mem: 419Mi 201Mi 27Mi 0.0Ki 189Mi 162Mi
Swap: 624Mi 2.0Mi 621Mi
pi@Zero2Pink:~ $ cat /proc/swaps
Filename Type Size Used Priority
/var/swap file 102396 0 -2
/dev/zram0 partition 536748 2304 15

```

And this is running a fresh Trixie Lite 64 bit. I can't understand the size of zram0 but it looks like they have abolished swap space on the SD card and gone for just zram.

```auto
pi@Zero2Red:~/.node-red $ free -h
               total used free shared buff/cache available
Mem: 416Mi 215Mi 115Mi 500Ki 141Mi 200Mi
Swap: 415Mi 36Mi 379Mi
pi@Zero2Red:~/.node-red $ cat /proc/swaps
Filename Type Size Used Priority
/dev/zram0 partition 425980 37180 100

```

If only there was a Node-red benchmark test I could tell how much difference it makes and workloads for which it is unviable.

---

<div class="post-metadata">

### Author: ![PdeJ](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@PdeJ](https://discourse.nodered.org/u/PdeJ)
#### Post date: [8 December 2025 18:15 UTC](https://discourse.nodered.org/t/node-red-contrib-tfjs-coco-ssd-1-0-6-download-error/99882/14 "2025-12-08T18:15:57Z")

</div>

OK so I had got completely the wrong end of the stick so to speak. I had assumed that Zram on Pixie still used external memory but compressed to speed up transfer rather than partitioning the device's physical ram.

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [8 December 2025 18:19 UTC](https://discourse.nodered.org/t/node-red-contrib-tfjs-coco-ssd-1-0-6-download-error/99882/15 "2025-12-08T18:19:59Z")

</div>

> [@PdeJ](#):
>
> I had got completely the wrong end of the stick so to speak. I had assumed that Zram on Pixie still used external memory but compressed to speed up transfer

You may well be right.

I have given up trying to get anything useful from the Pi documentation or forum.  
I only know that on Trixie the installation of zram failed because it was already running.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [8 March 2026 18:20 UTC](https://discourse.nodered.org/t/node-red-contrib-tfjs-coco-ssd-1-0-6-download-error/99882/16 "2026-03-08T18:20:57Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
