# Error installing package (node-red-contrib-tfjs-coco-ssd)

**URL:** <https://discourse.nodered.org/t/error-installing-package-node-red-contrib-tfjs-coco-ssd/88335>\
**Category:** General\
**Created:** [29 May 2024 03:22 UTC](https://discourse.nodered.org/t/error-installing-package-node-red-contrib-tfjs-coco-ssd/88335 "2024-05-29T03:22:42Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henjoe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henjoe/32/52335_2.png) [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Post date:** [29 May 2024 03:22 UTC](https://discourse.nodered.org/t/error-installing-package-node-red-contrib-tfjs-coco-ssd/88335/1 "2024-05-29T03:22:42Z")

</div>

Hi nodered experts,

I wonder is someone already use this package? and successfully use this library?  
I got this error while installing it.

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

Here is my environment:  
OS: Windows 10  
Nodered version 2.x  
NodeJS version 18.19.0

I

---

<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:** [29 May 2024 09:02 UTC](https://discourse.nodered.org/t/error-installing-package-node-red-contrib-tfjs-coco-ssd/88335/2 "2024-05-29T09:02:30Z")

</div>

Your version of NodeRED is a little old, the current version is 3.1.9 and version 4 in in beta testing.

That said I just ran a test on my Mac mini using NR v4.0.0-beta.3 and it ran fine. Here is the flow I used:

```auto
[{"id":"90c1b8a65b4765ec","type":"tab","label":"Flow 4","disabled":false,"info":"","env":[]},{"id":"3e623d1a.c9fd42","type":"tensorflowCoco","z":"90c1b8a65b4765ec","name":"","modelUrl":"http://localhost:1880/coco/model.json","scoreThreshold":0.5,"passthru":"bbox","lineColour":"magenta","x":170,"y":140,"wires":[["14fa8ce2.fc7043","4ec7b21f.c2d45c"]]},{"id":"14fa8ce2.fc7043","type":"debug","z":"90c1b8a65b4765ec","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"classes","targetType":"msg","x":450,"y":140,"wires":[]},{"id":"4ec7b21f.c2d45c","type":"image","z":"90c1b8a65b4765ec","name":"","width":"250","data":"image","dataType":"msg","thumbnail":false,"active":true,"outputs":0,"x":320,"y":200,"wires":[]},{"id":"96668799.c4d6d8","type":"jimp-image","z":"90c1b8a65b4765ec","name":"people from wikimedia.org","data":"http://upload.wikimedia.org/wikipedia/commons/b/b3/Team_Queerala.jpg","dataType":"str","ret":"buf","parameter1":"","parameter1Type":"msg","parameter2":"","parameter2Type":"msg","parameter3":"","parameter3Type":"msg","parameter4":"","parameter4Type":"msg","parameter5":"","parameter5Type":"msg","parameter6":"","parameter6Type":"msg","parameter7":"","parameter7Type":"msg","parameter8":"","parameter8Type":"msg","sendProperty":"payload","parameterCount":0,"jimpFunction":"none","selectedJimpFunction":{"name":"none","fn":"none","description":"Just loads the image.","parameters":[]},"x":220,"y":100,"wires":[["5b4a2790f05904e1","3e623d1a.c9fd42"]]},{"id":"16bbdba9.a15f64","type":"inject","z":"90c1b8a65b4765ec","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":145,"y":60,"wires":[["96668799.c4d6d8"]],"l":false},{"id":"5b4a2790f05904e1","type":"debug","z":"90c1b8a65b4765ec","name":"debug 3445","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":450,"y":100,"wires":[]},{"id":"18b5ba6a46a7850b","type":"jimp-image","z":"90c1b8a65b4765ec","name":"Kitten from placekitten.com","data":"http://placekitten.com/300/300","dataType":"str","ret":"buf","parameter1":"","parameter1Type":"msg","parameter2":"","parameter2Type":"msg","parameter3":"","parameter3Type":"msg","parameter4":"","parameter4Type":"msg","parameter5":"","parameter5Type":"msg","parameter6":"","parameter6Type":"msg","parameter7":"","parameter7Type":"msg","parameter8":"","parameter8Type":"msg","sendProperty":"payload","parameterCount":0,"jimpFunction":"none","selectedJimpFunction":{"name":"none","fn":"none","description":"Just loads the image.","parameters":[]},"x":740,"y":100,"wires":[["b78c1cb3682991fb","5684bbd480bbfbfc"]]},{"id":"4792c067ede834f6","type":"inject","z":"90c1b8a65b4765ec","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":665,"y":60,"wires":[["18b5ba6a46a7850b"]],"l":false},{"id":"b78c1cb3682991fb","type":"debug","z":"90c1b8a65b4765ec","name":"debug 3446","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":990,"y":100,"wires":[]},{"id":"5684bbd480bbfbfc","type":"tensorflowCoco","z":"90c1b8a65b4765ec","name":"","modelUrl":"http://localhost:1880/coco/model.json","scoreThreshold":0.5,"passthru":"bbox","lineColour":"magenta","x":690,"y":140,"wires":[["f28e273c2cef6094","d538fe1fe36d3e18"]]},{"id":"f28e273c2cef6094","type":"debug","z":"90c1b8a65b4765ec","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"classes","targetType":"msg","x":990,"y":140,"wires":[]},{"id":"d538fe1fe36d3e18","type":"image","z":"90c1b8a65b4765ec","name":"","width":"250","data":"image","dataType":"msg","thumbnail":true,"active":true,"pass":false,"outputs":0,"x":800,"y":200,"wires":[]}]

```

and a visual of the results:

 ![Screenshot 2024-05-29 at 5.00.46 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/f/0f79aa374a68fe418c11b7d83c0cbfb278b8f70a.png)

I would start off by updating your version of NR

---

<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:** [29 May 2024 10:42 UTC](https://discourse.nodered.org/t/error-installing-package-node-red-contrib-tfjs-coco-ssd/88335/3 "2024-05-29T10:42:09Z")

</div>

@Henjoe of the messages shown in the screenshot, none is an error. They are only warnings - none of which will have caused the install to fail.

The warnings are due to the package using older modules that have been deprecated - resolving them would require the module to be updated (where possible) to use newer versions of those dependencies.

If you believe the install has actually failed, please share the full output of the install command - ideally as text (formatted using the `</>` button in the toolbar) and not a screenshot.

---

<div class="post-metadata">

**Author:** ![Henjoe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henjoe/32/52335_2.png) [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Post date:** [29 May 2024 12:53 UTC](https://discourse.nodered.org/t/error-installing-package-node-red-contrib-tfjs-coco-ssd/88335/4 "2024-05-29T12:53:58Z")

</div>

Hello thanks for pointing that out!  
Here are some of the errors:

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

Any idea how to solve this?

---

<div class="post-metadata">

**Author:** ![Henjoe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henjoe/32/52335_2.png) [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Post date:** [29 May 2024 13:02 UTC](https://discourse.nodered.org/t/error-installing-package-node-red-contrib-tfjs-coco-ssd/88335/5 "2024-05-29T13:02:36Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/f/2ffe39bc3c6941fdd4018ffbdef22463187fd65d.png)  
I think the issue is my python version is 3.11 which is not yet supported.  
I will try to update my python.

---

<div class="post-metadata">

**Author:** ![Henjoe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henjoe/32/52335_2.png) [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Post date:** [1 June 2024 01:55 UTC](https://discourse.nodered.org/t/error-installing-package-node-red-contrib-tfjs-coco-ssd/88335/6 "2024-06-01T01:55:55Z")

</div>

Still having issue:  
Upgraded to latest version of nodered

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

---

<div class="post-metadata">

**Author:** ![Henjoe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henjoe/32/52335_2.png) [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Post date:** [1 June 2024 01:56 UTC](https://discourse.nodered.org/t/error-installing-package-node-red-contrib-tfjs-coco-ssd/88335/7 "2024-06-01T01:56:45Z")

</div>

Hi, I already upgraded it. But still having issue:

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

---

<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:** [1 June 2024 10:27 UTC](https://discourse.nodered.org/t/error-installing-package-node-red-contrib-tfjs-coco-ssd/88335/8 "2024-06-01T10:27:46Z")

</div>

What version of Node-RED did you update to? If you stop and start NR you will see the version of node-red and node.js

---

<div class="post-metadata">

**Author:** ![Henjoe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henjoe/32/52335_2.png) [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Post date:** [1 June 2024 12:04 UTC](https://discourse.nodered.org/t/error-installing-package-node-red-contrib-tfjs-coco-ssd/88335/9 "2024-06-01T12:04:03Z")

</div>

Hi, I am using 3.1.9 NR version.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/b/6b35ddad5be1329ffcd97729d14fc7cecc8f5cea.png)

I wonder if you need to install python in order to work on this? It is not stated in the pre-requisites that python is needed right?  
Thanks mate!

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [1 June 2024 12:11 UTC](https://discourse.nodered.org/t/error-installing-package-node-red-contrib-tfjs-coco-ssd/88335/10 "2024-06-01T12:11:03Z")

</div>

> [@Henjoe](#):
>
> It is not stated in the pre-requisites that python is needed right?

No, but there are signs. For example it says

> On a Pi - you will also need to run this command after the main install.
> 
> ```auto
> cd ~/.node-red
> npm rebuild @tensorflow/tfjs-node --build-from-source
> 
> ```

which implies there is a build step in this module, which ultimately means (in the world of node) you need the build-essentials tools which (in the world of windows) means you _should_ have ticked the box when you installed node-js

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/f/5f177c45e57cffc72725cbf968fbd058a54b62c0.jpeg)

---

<div class="post-metadata">

**Author:** ![Henjoe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henjoe/32/52335_2.png) [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Post date:** [1 June 2024 12:23 UTC](https://discourse.nodered.org/t/error-installing-package-node-red-contrib-tfjs-coco-ssd/88335/11 "2024-06-01T12:23:13Z")

</div>

Thanks for this! I might need to re-install my nodejs. I will try this one.

---

<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:** [30 August 2024 12:24 UTC](https://discourse.nodered.org/t/error-installing-package-node-red-contrib-tfjs-coco-ssd/88335/12 "2024-08-30T12:24:09Z")

</div>

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