# Installing custom nodes from git repo

**URL:** <https://discourse.nodered.org/t/installing-custom-nodes-from-git-repo/17657>\
**Category:** General\
**Created:** [7 November 2019 21:46 UTC](https://discourse.nodered.org/t/installing-custom-nodes-from-git-repo/17657 "2019-11-07T21:46:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharique.hasan](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@sharique.hasan](https://discourse.nodered.org/u/sharique.hasan)\
**Post date:** [7 November 2019 21:46 UTC](https://discourse.nodered.org/t/installing-custom-nodes-from-git-repo/17657/1 "2019-11-07T21:46:14Z")

</div>

we have AI solutions. where we have different nodes involving camera feed and object-detection custom build. So now we need to add them to our node-red instance. I was looking at this API [https://nodered.org/docs/api/admin/methods/post/nodes/](https://nodered.org/docs/api/admin/methods/post/nodes/) but it says that it only install from npm. So how can i install the nodes programmatically via REST API from fully qualified git repo url?

---

<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:** [7 November 2019 21:57 UTC](https://discourse.nodered.org/t/installing-custom-nodes-from-git-repo/17657/2 "2019-11-07T21:57:07Z")

</div>

Hi @sharique.hasan - as the API docs says, you can only install via the npm registry using that API.

There is work underway to change that, but I don't have an outlook for when it may arrive.

---

<div class="post-metadata">

**Author:** ![sharique.hasan](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@sharique.hasan](https://discourse.nodered.org/u/sharique.hasan)\
**Post date:** [8 November 2019 07:10 UTC](https://discourse.nodered.org/t/installing-custom-nodes-from-git-repo/17657/3 "2019-11-08T07:10:20Z")

</div>

So may be, we can host our own npm repository and publish the module there. and set that registry url on to node-red instance. So that when node-red installs any module it will first fetch from local npm repo and if not found will fetch from global npm repo.
