Problem installing TTN node


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

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

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)"


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.

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

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


i noticed that in the github closed issues that but didn't want to encourage the op to use a depreciated node :wink:

Quite right, which I also pointed out.