# Node-red-contrib-facemask-detector fails to install

**URL:** <https://discourse.nodered.org/t/node-red-contrib-facemask-detector-fails-to-install/49720>\
**Category:** General\
**Created:** [14 August 2021 17:20 UTC](https://discourse.nodered.org/t/node-red-contrib-facemask-detector-fails-to-install/49720 "2021-08-14T17:20:59Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![pcborges](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@pcborges](https://discourse.nodered.org/u/pcborges)\
**Post date:** [14 August 2021 17:20 UTC](https://discourse.nodered.org/t/node-red-contrib-facemask-detector-fails-to-install/49720/1 "2021-08-14T17:20:59Z")

</div>

Hi, I am trying to experiment with the node-red-contrib-facemask-detector but it never installs successfully.  
After some research I installed what seems to be dependencies:  
node-red-contrib-tf-function  
node-red-contrib-tf-model

also installed for other tests are:  
node-red-contrib-tensorflow  
node-red-contrib-tfjs-coco-ssd

But when I try to install the facemask-detector it seems like installed but when I check Pallete/Nodes the facemask-detector node shows a message: MODULE\_NOT\_FOUND

Assistance welcome.  
Thanks

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [14 August 2021 17:59 UTC](https://discourse.nodered.org/t/node-red-contrib-facemask-detector-fails-to-install/49720/2 "2021-08-14T17:59:09Z")

</div>

You could ask the node author - [GitHub - dev-willcode/node-red-contrib-facemask-detector](https://github.com/dev-willcode/node-red-contrib-facemask-detector)

---

<div class="post-metadata">

**Author:** ![pcborges](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@pcborges](https://discourse.nodered.org/u/pcborges)\
**Post date:** [14 August 2021 18:18 UTC](https://discourse.nodered.org/t/node-red-contrib-facemask-detector-fails-to-install/49720/4 "2021-08-14T18:18:25Z")

</div>

Hi, I am installing from within Node red web interface.

Paulo Borges

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [14 August 2021 19:48 UTC](https://discourse.nodered.org/t/node-red-contrib-facemask-detector-fails-to-install/49720/5 "2021-08-14T19:48:43Z")

</div>

OK, but we need to see the logs to know why it failed.

Most likely it is because you are missing a native pre-requisites

Also as the README clearly states you need to have installed `@microsoft/customvision-tfjs-node` and `@tensorflow/tfjs-node` as well. (These can NOT be installed via the Node-RED Editor)

Since the developer has not chosen to link the node to it's GitHub repo there is no easy way to contact them.

---

<div class="post-metadata">

**Author:** ![pcborges](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@pcborges](https://discourse.nodered.org/u/pcborges)\
**Post date:** [14 August 2021 20:06 UTC](https://discourse.nodered.org/t/node-red-contrib-facemask-detector-fails-to-install/49720/6 "2021-08-14T20:06:29Z")

</div>

Hi, yes, the log for the installation of facemask-detector has errors.  
I will run the installation again and provide the contents of the log.  
But you mention something Microsoft, I am running on a Pi4, do I still have to consider that mention?  
In fact I fill some prerequisite is missing but cannot find what.  
Thanks

---

<div class="post-metadata">

**Author:** ![pcborges](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@pcborges](https://discourse.nodered.org/u/pcborges)\
**Post date:** [14 August 2021 20:10 UTC](https://discourse.nodered.org/t/node-red-contrib-facemask-detector-fails-to-install/49720/7 "2021-08-14T20:10:45Z")

</div>

## facemask-detector installation log:

2021-08-14T20:09:12.837Z Install : node-red-contrib-facemask-detector 1.0.0

2021-08-14T20:09:14.372Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-facemask-detector@1.0.0  
2021-08-14T20:09:22.875Z [err] npm  
2021-08-14T20:09:22.876Z [err]  
2021-08-14T20:09:22.876Z [err] WARN  
2021-08-14T20:09:22.877Z [err] @tensorflow-models/mobilenet@2.1.0 requires a peer of @tensorflow/tfjs-converter@^3.1.0 but none is installed. You must install peer dependencies yourself.  
2021-08-14T20:09:22.901Z [err] npm  
2021-08-14T20:09:22.902Z [err]  
2021-08-14T20:09:22.902Z [err] WARN  
2021-08-14T20:09:22.902Z [err] @tensorflow-models/mobilenet@2.1.0 requires a peer of @tensorflow/tfjs-core@^3.1.0 but none is installed. You must install peer dependencies yourself.  
2021-08-14T20:09:22.931Z [err] npm  
2021-08-14T20:09:22.931Z [err] WARN @tensorflow-models/posenet@2.2.2 requires a peer of @tensorflow/tfjs-converter@^3.0.0-rc.1 but none is installed. You must install peer dependencies yourself.  
2021-08-14T20:09:22.955Z [err] npm  
2021-08-14T20:09:22.956Z [err] WARN @tensorflow-models/posenet@2.2.2 requires a peer of @tensorflow/tfjs-core@^3.0.0-rc.1 but none is installed. You must install peer dependencies yourself.  
2021-08-14T20:09:22.980Z [err] npm  
2021-08-14T20:09:22.980Z [err] WARN @tensorflow/tfjs-data@1.4.0 requires a peer of @tensorflow/tfjs-core@1.4.0 but none is installed. You must install peer dependencies yourself.  
2021-08-14T20:09:23.004Z [err] npm WARN  
2021-08-14T20:09:23.004Z [err] @tensorflow/tfjs-layers@1.4.0 requires a peer of @tensorflow/tfjs-core@1.4.0 but none is installed. You must install peer dependencies yourself.  
2021-08-14T20:09:23.028Z [err] npm WARN  
2021-08-14T20:09:23.028Z [err] node-red-contrib-facemask-detector@1.0.0 requires a peer of @tensorflow/tfjs-node@^2.8.3 but none is installed. You must install peer dependencies yourself.  
2021-08-14T20:09:23.057Z [err] npm  
2021-08-14T20:09:23.057Z [err] WARN node-red-contrib-facemask-detector@1.0.0 requires a peer of @microsoft/customvision-tfjs-node@^1.1.0 but none is installed. You must install peer dependencies yourself.  
2021-08-14T20:09:23.058Z [err]  
2021-08-14T20:09:23.060Z [out] + node-red-contrib-facemask-detector@1.0.0  
2021-08-14T20:09:23.060Z [out] added 1 package from 1 contributor in 7.328s  
2021-08-14T20:09:23.108Z rc=0

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [14 August 2021 20:20 UTC](https://discourse.nodered.org/t/node-red-contrib-facemask-detector-fails-to-install/49720/8 "2021-08-14T20:20:25Z")

</div>

Just because Microsoft wrote it, doesn't mean it will only run on Windows (and even if it did it would just mean you could only run this node on a Windows machine so you'd be out of luck.).

Yes you must install ALL the pre-reqs listed in the readme.

The errors also give you very clear instructions on what you need to do.

---

<div class="post-metadata">

**Author:** ![pcborges](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@pcborges](https://discourse.nodered.org/u/pcborges)\
**Post date:** [14 August 2021 20:30 UTC](https://discourse.nodered.org/t/node-red-contrib-facemask-detector-fails-to-install/49720/9 "2021-08-14T20:30:46Z")

</div>

Ok, let me understand, from the beginning of the log I see:  
"@tensorflow-models/mobilenet@2.1.0 requires a peer of @tensorflow/tfjs-converter@^3.1.0 but none is installed."  
I Understand:  
I need to install @tensorflow/tfjs-converter@^3.1.0, or tensorflow/tfjs-converter version 3.1.0  
Where do I get that?  
Do I install it from terminal using: sudo apt get (something like: tensorflow/tfjs-converter)?  
Thanks

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [14 August 2021 20:33 UTC](https://discourse.nodered.org/t/node-red-contrib-facemask-detector-fails-to-install/49720/10 "2021-08-14T20:33:31Z")

</div>

> [@hardillb](#):
>
> Since the developer has not chosen to link the node to it's GitHub repo there is no easy way to contact them

I posted a link to his repo in my post above.

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [14 August 2021 20:43 UTC](https://discourse.nodered.org/t/node-red-contrib-facemask-detector-fails-to-install/49720/11 "2021-08-14T20:43:04Z")

</div>

Start by following ALL the instructions in the README

---

<div class="post-metadata">

**Author:** ![pcborges](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@pcborges](https://discourse.nodered.org/u/pcborges)\
**Post date:** [15 August 2021 00:33 UTC](https://discourse.nodered.org/t/node-red-contrib-facemask-detector-fails-to-install/49720/12 "2021-08-15T00:33:54Z")

</div>

The README contain the same as the link provided by Paul-Reed.  
I followed the Install section and manually run:

Go to **.node red** folder (usually located at `C:\Users\{YOUR_USER}\.node-red` ) and execute:  
npm install @microsoft/customvision-tfjs-node  
npm install @tensorflow/tfjs-node  
and then, install the node using:  
npm install -S node-red-contrib-facemask-detector

But it complains of the very same dependencies that the Node-Red web interface complains.  
What precisely do I have to install to satisfy these dependencies?  
My experience with Linux is not enough to understand where to get these things.  
Thanks

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [15 August 2021 08:02 UTC](https://discourse.nodered.org/t/node-red-contrib-facemask-detector-fails-to-install/49720/13 "2021-08-15T08:02:16Z")

</div>

> [@pcborges](#):
>
> contain the same as the link provided by Paul-Reed

I posted that link so that you could ask the developer why it isn't working.  
If you have followed the readme exactly, and it doesn't work, then raise an issue in the git repo, and hopefully the developer who wrote it will answer you.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [15 August 2021 08:24 UTC](https://discourse.nodered.org/t/node-red-contrib-facemask-detector-fails-to-install/49720/14 "2021-08-15T08:24:39Z")

</div>

I have found that a lot of these tensorflow type nodes have conflicting requirements. Make sure you completely remove any other tf type installs and their pre-reqs before installing.

---

<div class="post-metadata">

**Author:** ![pcborges](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@pcborges](https://discourse.nodered.org/u/pcborges)\
**Post date:** [15 August 2021 10:27 UTC](https://discourse.nodered.org/t/node-red-contrib-facemask-detector-fails-to-install/49720/15 "2021-08-15T10:27:10Z")

</div>

Hi Paul, thanks for the input, I am still assuming it is something wrong with what I am doing.  
Will wait some more clues and research a little more before bothering the developer.  
Thanks

---

<div class="post-metadata">

**Author:** ![pcborges](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@pcborges](https://discourse.nodered.org/u/pcborges)\
**Post date:** [15 August 2021 10:30 UTC](https://discourse.nodered.org/t/node-red-contrib-facemask-detector-fails-to-install/49720/16 "2021-08-15T10:30:10Z")

</div>

Hi, yes, it makes sense, I have been trying several object detection projects recently and if that is the case my environment may well be a little polluted.  
May be I will try to reload Raspbian from scratch and try again and see what happens.  
Thanks

---

<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:** [14 October 2021 10:30 UTC](https://discourse.nodered.org/t/node-red-contrib-facemask-detector-fails-to-install/49720/17 "2021-10-14T10:30:51Z")

</div>

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