# How to Install node from GitHub

**URL:** https://discourse.nodered.org/t/how-to-install-node-from-github/55549
**Category:** General
**Created:** [22 December 2021 08:43 UTC](https://discourse.nodered.org/t/how-to-install-node-from-github/55549 "2021-12-22T08:43:38Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![borpin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/borpin/32/1765_2.png) [@borpin](https://discourse.nodered.org/u/borpin)
#### Post date: [22 December 2021 08:43 UTC](https://discourse.nodered.org/t/how-to-install-node-from-github/55549/1 "2021-12-22T08:43:38Z")

</div>

I'm sure this should be in the documentation somewhere but I have failed to find it.

I want to install a node from GitHub (it is a fork of a node in NPM - not installed via pallette).

How can I do that - system is a bare Ubuntu base (container in PVE, but that shouldn't matter). Node-red was installed using the Linux script and is about to be fully updated.

Obviously, I'll clone the repo from Github, but where to so it gets picked up? Are there any other steps required?

---

<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: [22 December 2021 08:46 UTC](https://discourse.nodered.org/t/how-to-install-node-from-github/55549/2 "2021-12-22T08:46:05Z")

</div>

No need to clone the repo, you can install directly from github

Assuming the following git repo: [https://github.com/hardillb/node-red-node-geofence](https://github.com/hardillb/node-red-node-geofence)

in your userDir (~/.node-red) run the following:

```auto
npm install hardillb/node-red-node-geofence

```

---

<div class="post-metadata">

### Author: ![borpin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/borpin/32/1765_2.png) [@borpin](https://discourse.nodered.org/u/borpin)
#### Post date: [22 December 2021 08:50 UTC](https://discourse.nodered.org/t/how-to-install-node-from-github/55549/3 "2021-12-22T08:50:20Z")

</div>

Thanks will try that.

As a matter of interest, can you install both the NPM version and a forked version that will have the same package name?

---

<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: [22 December 2021 08:53 UTC](https://discourse.nodered.org/t/how-to-install-node-from-github/55549/4 "2021-12-22T08:53:07Z")

</div>

No, for several reasons.

- Assuming the npm package name hasn't changed then installing the second version will overwrite the first
- Even if the npm package name has been changed unless the Node-RED node types haven't had their names changed then they will clash and Node-RED will raise and error when it tries to load the second version saying there is a clash and fail to load the second instance.

---

<div class="post-metadata">

### Author: ![borpin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/borpin/32/1765_2.png) [@borpin](https://discourse.nodered.org/u/borpin)
#### Post date: [22 December 2021 09:17 UTC](https://discourse.nodered.org/t/how-to-install-node-from-github/55549/5 "2021-12-22T09:17:24Z")

</div>

Great thanks.

Final question, how can the node be completely removed?

---

<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: [22 December 2021 09:39 UTC](https://discourse.nodered.org/t/how-to-install-node-from-github/55549/6 "2021-12-22T09:39:27Z")

</div>

You can remove it using the palette manager or using `npm remove`. So for the example earlier,  
`npm remove node-red-node-geofence`  
No need to specify the git author when removing.

---

<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: [5 January 2022 09:40 UTC](https://discourse.nodered.org/t/how-to-install-node-from-github/55549/7 "2022-01-05T09:40:21Z")

</div>

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