# Auto install packages using package.json

**URL:** <https://discourse.nodered.org/t/auto-install-packages-using-package-json/23135>\
**Category:** General\
**Created:** [15 March 2020 15:00 UTC](https://discourse.nodered.org/t/auto-install-packages-using-package-json/23135 "2020-03-15T15:00:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![IoTPlay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iotplay/32/40_2.png) [@IoTPlay](https://discourse.nodered.org/u/IoTPlay)\
**Post date:** [15 March 2020 15:00 UTC](https://discourse.nodered.org/t/auto-install-packages-using-package-json/23135/1 "2020-03-15T15:00:22Z")

</div>

Hi, I am still busy with a CD/CI config. I do dev on Docker on Mac - push the flows.json etc back top github, then want to install - without Projects - on RPi.

In this port of Nic [creating-a-node-red-deployment-pipeline-to-ibm-cloud](https://knolleary.net/2018/06/01/creating-a-node-red-deployment-pipeline-to-ibm-cloud/) , he says you need to use your package.json file to ensure all packages are in.

Is their some command to run against Node-RED once the cloned git repo with the package.json is on the target host (RPi) ? As mine is not bringing down the packages when I startup Node-RED.

---

<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 March 2020 15:24 UTC](https://discourse.nodered.org/t/auto-install-packages-using-package-json/23135/2 "2020-03-15T15:24:47Z")

</div>

`npm install` against that package.json

---

<div class="post-metadata">

**Author:** ![IoTPlay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iotplay/32/40_2.png) [@IoTPlay](https://discourse.nodered.org/u/IoTPlay)\
**Post date:** [15 March 2020 16:32 UTC](https://discourse.nodered.org/t/auto-install-packages-using-package-json/23135/3 "2020-03-15T16:32:35Z")

</div>

Thank you, and if I run the Node-RED docker instance?

---

<div class="post-metadata">

**Author:** ![IoTPlay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iotplay/32/40_2.png) [@IoTPlay](https://discourse.nodered.org/u/IoTPlay)\
**Post date:** [15 March 2020 16:39 UTC](https://discourse.nodered.org/t/auto-install-packages-using-package-json/23135/4 "2020-03-15T16:39:59Z")

</div>

Going to try this:

```auto
Adding Nodes

Installing extra Node-RED nodes into an instance running with Docker can be achieved by manually installing those nodes into the container, using the cli or running npm commands within a container shell, or mounting a host directory with those nodes as a data volume.

Node-RED Admin Tool

Using the administration tool, with port forwarding on the container to the host system, extra nodes can be installed without leaving the host system.

    $ npm install -g node-red-admin
    $ node-red-admin install node-red-node-openwhisk

```

In this link: [https://hub.docker.com/r/nodered/node-red-docker](https://hub.docker.com/r/nodered/node-red-docker)

---

<div class="post-metadata">

**Author:** ![IoTPlay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iotplay/32/40_2.png) [@IoTPlay](https://discourse.nodered.org/u/IoTPlay)\
**Post date:** [17 March 2020 08:56 UTC](https://discourse.nodered.org/t/auto-install-packages-using-package-json/23135/5 "2020-03-17T08:56:45Z")

</div>

Thank you, never done this - it's awesome !

---

<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:** [16 May 2020 08:56 UTC](https://discourse.nodered.org/t/auto-install-packages-using-package-json/23135/6 "2020-05-16T08:56:46Z")

</div>

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