# Problem installing TTN node

**URL:** <https://discourse.nodered.org/t/problem-installing-ttn-node/41100>\
**Category:** Forum Help\
**Created:** [16 February 2021 16:14 UTC](https://discourse.nodered.org/t/problem-installing-ttn-node/41100 "2021-02-16T16:14:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmavina](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bmavina/32/37333_2.png) [@bmavina](https://discourse.nodered.org/u/bmavina)\
**Post date:** [16 February 2021 16:14 UTC](https://discourse.nodered.org/t/problem-installing-ttn-node/41100/1 "2021-02-16T16:14:17Z")

</div>

Hi,

I am using  
Node.js v14.15.5  
Npm v6.14.11

I am trying to install the TTN node [node-red-contrib-ttn] on my Node Red application but it keeps resulting in " Failed to install: node-red-contrib-ttn ". I have just updated my npm and node.js to try fix this problem but nothing has changed.

This is what im currently receiving from the event log  
Does anyone have any idea what's going on?

* * *

2021-02-16T13:25:37.964Z Install : node-red-contrib-ttn 2.0.5

2021-02-16T13:25:37.970Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-contrib-ttn@2.0.5

2021-02-16T13:25:40.891Z [err] npm

2021-02-16T13:25:40.894Z [err]

2021-02-16T13:25:40.894Z [err] WARN

2021-02-16T13:25:40.894Z [err] deprecated node-red-contrib-ttn@2.0.5: Deprecated package

2021-02-16T13:25:41.332Z [err] npm

2021-02-16T13:25:41.333Z [err] WARN

2021-02-16T13:25:41.333Z [err] deprecated ttn@2.3.3: Deprecated package

2021-02-16T13:25:42.054Z [err] npm

2021-02-16T13:25:42.054Z [err]

2021-02-16T13:25:42.054Z [err] WARN deprecated node-pre-gyp@0.11.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future

2021-02-16T13:25:42.178Z [err] npm

2021-02-16T13:25:42.178Z [err] ERR! code ENOENT

2021-02-16T13:25:42.178Z [err] npm ERR! syscall spawn git

2021-02-16T13:25:42.179Z [err] npm

2021-02-16T13:25:42.179Z [err]

2021-02-16T13:25:42.179Z [err] ERR!

2021-02-16T13:25:42.179Z [err] path git

2021-02-16T13:25:42.180Z [err] npm

2021-02-16T13:25:42.180Z [err] ERR! errno

2021-02-16T13:25:42.180Z [err] -4058

2021-02-16T13:25:42.189Z [err] npm

2021-02-16T13:25:42.189Z [err] ERR! enoent Error while executing:

2021-02-16T13:25:42.189Z [err] npm

2021-02-16T13:25:42.189Z [err] ERR! enoent undefined ls-remote -h -t [https://github.com/thethingsnetwork/api.git](https://github.com/thethingsnetwork/api.git)

2021-02-16T13:25:42.189Z [err] npm

2021-02-16T13:25:42.189Z [err] ERR! enoent

2021-02-16T13:25:42.190Z [err] npm ERR! enoent

2021-02-16T13:25:42.190Z [err] npm

2021-02-16T13:25:42.190Z [err] ERR! enoent spawn git ENOENT

2021-02-16T13:25:42.190Z [err] npm ERR! enoent This is related to npm not being able to find a file.

2021-02-16T13:25:42.190Z [err] npm

2021-02-16T13:25:42.190Z [err] ERR! enoent

2021-02-16T13:25:42.204Z [err]

2021-02-16T13:25:42.204Z [err] npm ERR! A complete log of this run can be found in:

2021-02-16T13:25:42.204Z [err] npm ERR! C:\Users\user\AppData\Roaming\npm-cache\_logs\2021-02-16T13\_25\_42\_191Z-debug.log

2021-02-16T13:25:42.232Z rc=4294963238

* * *

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 February 2021 16:19 UTC](https://discourse.nodered.org/t/problem-installing-ttn-node/41100/2 "2021-02-16T16:19:03Z")

</div>

That node is deprecated. The GitHub repo clearly states this. The issues comments state "RPi support is now deprecated. We'll add guides for V3 to work with builtin Node-RED nodes (i.e. the MQTT input and output nodes)"

> **[node-red-contrib-ttn](https://www.npmjs.com/package/node-red-contrib-ttn)**
>
> The Things Network Node-RED Application Nodes

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [16 February 2021 16:20 UTC](https://discourse.nodered.org/t/problem-installing-ttn-node/41100/3 "2021-02-16T16:20:33Z")

</div>

Hi,

TTN node are no longer supported, you now use MQTT for connecting, if you search on the TTN forum there is a very comprehensive thread on MQTT.

> **[MQTT in Node-RED \[HowTo\]](https://www.thethingsnetwork.org/forum/t/mqtt-in-node-red-howto/39909)**
>
> Node-RED has built-in support to act as an MQTT client, which can be used with TTN’s MQTT Data API. ⚠ For new developments, one should not use the The Things Network’s node-red-contrib-ttn, which is no longer supported. Setting up the MQTT client...

---

<div class="post-metadata">

**Author:** ![bmavina](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bmavina/32/37333_2.png) [@bmavina](https://discourse.nodered.org/u/bmavina)\
**Post date:** [16 February 2021 16:56 UTC](https://discourse.nodered.org/t/problem-installing-ttn-node/41100/4 "2021-02-16T16:56:31Z")

</div>

Thank you so much I'm very new to using Node-red.

---

<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:** [16 February 2021 17:43 UTC](https://discourse.nodered.org/t/problem-installing-ttn-node/41100/5 "2021-02-16T17:43:20Z")

</div>

> [@bmavina](#):
>
> 2021-02-16T13:25:42.178Z [err] ERR! code ENOENT
> 
> 2021-02-16T13:25:42.178Z [err] npm ERR! syscall spawn git

That, I believe, is actually the cause of the failure, it needs `git` installed. Which doesn't affect what others have said, however.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 February 2021 19:21 UTC](https://discourse.nodered.org/t/problem-installing-ttn-node/41100/6 "2021-02-16T19:21:24Z")

</div>

🤫

_i noticed that in the github closed issues that but didn't want to encourage the op to use a depreciated node 😉_

---

<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:** [16 February 2021 21:34 UTC](https://discourse.nodered.org/t/problem-installing-ttn-node/41100/7 "2021-02-16T21:34:01Z")

</div>

> [@Steve-Mcl](#):
>
> didn't want to encourage the op to use a depreciated node

Quite right, which I also pointed out.
