# How to install the required dependencies

**URL:** https://discourse.nodered.org/t/how-to-install-the-required-dependencies/47091
**Category:** General
**Created:** [13 June 2021 07:55 UTC](https://discourse.nodered.org/t/how-to-install-the-required-dependencies/47091 "2021-06-13T07:55:52Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![lei1](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@lei1](https://discourse.nodered.org/u/lei1)
#### Post date: [13 June 2021 07:55 UTC](https://discourse.nodered.org/t/how-to-install-the-required-dependencies/47091/1 "2021-06-13T07:55:53Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/8/e8fd89a75cdaf5ce2d4fcdeec53ca7c074f26615.png)  
When installing this module, I was asked to install the libraries first, I'm using docker running nodered, how do I install these libraries

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [13 June 2021 09:06 UTC](https://discourse.nodered.org/t/how-to-install-the-required-dependencies/47091/2 "2021-06-13T09:06:42Z")

</div>

Not really a Node-RED question. You will need to know how to put together a composite Docker setup or how to make changes to your Node-RED Docker build.

---

<div class="post-metadata">

### Author: ![lei1](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@lei1](https://discourse.nodered.org/u/lei1)
#### Post date: [13 June 2021 09:32 UTC](https://discourse.nodered.org/t/how-to-install-the-required-dependencies/47091/3 "2021-06-13T09:32:29Z")

</div>

Is there no other way, I have installed node-red-contrib-machine-learning-v2 , try it

---

<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: [13 June 2021 11:16 UTC](https://discourse.nodered.org/t/how-to-install-the-required-dependencies/47091/4 "2021-06-13T11:16:55Z")

</div>

I haven't used it, but it may be easier if you don't use docker.

---

<div class="post-metadata">

### Author: ![Jean-Luc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jean-luc/32/89996_2.png) [@Jean-Luc](https://discourse.nodered.org/u/Jean-Luc)
#### Post date: [14 June 2021 16:31 UTC](https://discourse.nodered.org/t/how-to-install-the-required-dependencies/47091/5 "2021-06-14T16:31:23Z")

</div>

From what I have learned in practice,  
you have to go into the nodered container **in interactive mode** with the **-it** qualifier  
See doc [here](https://nodered.org/docs/getting-started/docker)  
Install the dependencies you need, be careful, this is Linux Alpine, so the commands may be different from Ubuntu for example.  
Then install the node you need.  
Be careful, in order not to lose your work, you have to create your own image from the one you just modified. Docker command then.  
ex: `sudo docker build -t nodered-lei1`  
From this new image you can create your definitive container and keep your modifications forever.  
All this can be automated from a **Dockerfile** where you will place the instructions you have done in interactive mode.

Indeed, it is more complicated in Docker mode than in pure installation.  
But then, it's portable and can be installed everywhere very easily 😉

For information, like many others, I use the [Portainer.io](https://documentation.portainer.io/quickstart/?hsCtaTracking=cb3a059b-7f57-4333-a92f-b06202ef8690%7C4427d7bc-1ae8-4a30-812c-d30ee496008f) container to manage the Docker environment without diving too much into the commands. It's a very nice tool.

---

<div class="post-metadata">

### Author: ![lei1](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@lei1](https://discourse.nodered.org/u/lei1)
#### Post date: [15 June 2021 04:32 UTC](https://discourse.nodered.org/t/how-to-install-the-required-dependencies/47091/6 "2021-06-15T04:32:11Z")

</div>

thank you so much

---

<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: [29 June 2021 04:33 UTC](https://discourse.nodered.org/t/how-to-install-the-required-dependencies/47091/7 "2021-06-29T04:33:08Z")

</div>

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