# Install all project dependencies from command line

**URL:** <https://discourse.nodered.org/t/install-all-project-dependencies-from-command-line/16039>\
**Category:** General\
**Created:** [28 September 2019 22:19 UTC](https://discourse.nodered.org/t/install-all-project-dependencies-from-command-line/16039 "2019-09-28T22:19:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![corbosman](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/corbosman/32/12578_2.png) [@corbosman](https://discourse.nodered.org/u/corbosman)\
**Post date:** [28 September 2019 22:19 UTC](https://discourse.nodered.org/t/install-all-project-dependencies-from-command-line/16039/1 "2019-09-28T22:19:56Z")

</div>

Hi all, if I have a local project, and move it to other installations, it there a way to install the project dependencies listed in the project package.json from the command line?

---

<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:** [28 September 2019 22:40 UTC](https://discourse.nodered.org/t/install-all-project-dependencies-from-command-line/16039/2 "2019-09-28T22:40:18Z")

</div>

you should be able to just run `npm install` in that directory.

---

<div class="post-metadata">

**Author:** ![corbosman](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/corbosman/32/12578_2.png) [@corbosman](https://discourse.nodered.org/u/corbosman)\
**Post date:** [28 September 2019 23:31 UTC](https://discourse.nodered.org/t/install-all-project-dependencies-from-command-line/16039/3 "2019-09-28T23:31:14Z")

</div>

But that installs the packages in projects/foo/node\_modules. Dont they need to be in the main ~/.node-red/node\_modules?

---

<div class="post-metadata">

**Author:** ![elizabeth-dev](https://avatars.discourse-cdn.com/v4/letter/e/dec6dc/32.png) [@elizabeth-dev](https://discourse.nodered.org/u/elizabeth-dev)\
**Post date:** [11 December 2019 15:34 UTC](https://discourse.nodered.org/t/install-all-project-dependencies-from-command-line/16039/4 "2019-12-11T15:34:28Z")

</div>

Hi! I tried to run `npm install` on the project folder (/data/projects/project-name/ for the docker images), but it doesn't add the required modules to the project, it generates a node\_modules folder with the dependencies inside it, but it doesn't show as installed on the dashboard, and the custom nodes are still shown as "unknown".

Am I missing something? Is the procedure different on the Docker images?

---

<div class="post-metadata">

**Author:** ![fdiaz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fdiaz/32/57365_2.png) [@fdiaz](https://discourse.nodered.org/u/fdiaz)\
**Post date:** [4 November 2020 03:51 UTC](https://discourse.nodered.org/t/install-all-project-dependencies-from-command-line/16039/5 "2020-11-04T03:51:45Z")

</div>

Can we have someone come back to this! This solution does not add the nodes from your project dependencies and freezes up your editor by re-adding all of your node-modules in your projects folder and overloads the git integration. Please help me to figure out how to get the `npm install` working for a git projects folder.

---

<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:** [4 November 2020 07:07 UTC](https://discourse.nodered.org/t/install-all-project-dependencies-from-command-line/16039/6 "2020-11-04T07:07:47Z")

</div>

You should run the command in your `.node-red` folder, not the project folder.

---

<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:** [4 November 2020 09:17 UTC](https://discourse.nodered.org/t/install-all-project-dependencies-from-command-line/16039/7 "2020-11-04T09:17:26Z")

</div>

I see that you have asked this question in a [new thread](https://discourse.nodered.org/t/npm-install-update-makes-editor-unresponsive/35046). I am closing this one as it is a year old.

---

<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:** [4 November 2020 09:17 UTC](https://discourse.nodered.org/t/install-all-project-dependencies-from-command-line/16039/8 "2020-11-04T09:17:41Z")

</div>


