Node-red-contib-ttn Installing ERROR

Hello, i'm trying to install ttn palette on node red running locally on windows 10. The log error of trying to install is:

2019-04-10T20:22:55.734Z Install : node-red-contrib-ttn 2.0.5
2019-04-10T20:22:56.044Z npm.cmd install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-ttn@2.0.5
2019-04-10T20:23:07.425Z [err] npm
2019-04-10T20:23:07.425Z [err] ERR! code ENOGIT
2019-04-10T20:23:07.428Z [err] npm
2019-04-10T20:23:07.428Z [err] ERR! Error while executing:
2019-04-10T20:23:07.428Z [err] npm ERR! undefined ls-remote -h -t https://github.com/thethingsnetwork/api.git
2019-04-10T20:23:07.428Z [err] npm
2019-04-10T20:23:07.428Z [err] ERR!
2019-04-10T20:23:07.428Z [err] npm ERR! undefined
2019-04-10T20:23:07.428Z [err] npm
2019-04-10T20:23:07.429Z [err] ERR! No git binary found in $PATH
2019-04-10T20:23:07.429Z [err] npm
2019-04-10T20:23:07.429Z [err] ERR!
2019-04-10T20:23:07.429Z [err] npm
2019-04-10T20:23:07.429Z [err] ERR! Failed using git.
2019-04-10T20:23:07.429Z [err] npm ERR! Please check if you have git installed and in your PATH.
2019-04-10T20:23:07.483Z [err]
2019-04-10T20:23:07.483Z [err] npm ERR! A complete log of this run can be found in:
2019-04-10T20:23:07.483Z [err] npm ERR! C:\Users\Byond SDR_1\AppData\Roaming\npm-cache_logs\2019-04-10T20_23_07_431Z-debug.log
2019-04-10T20:23:07.514Z rc=1

node version: 10.15.3
npm verion: 6.4.1

Help pls

As one of the lines says. Do you have git installed and working ?

Try this:

cd $HOME/.node-red
npm install node-red-contrib-ttn

$HOME => C:/Users/<user>/ (replacing <user> with your actual user name)

Hello, i installed git from this website https://git-scm.com/, and installed too by typing in windows powershell "npm i -g git-win --git4win_mirror=http://npm.taobao.org/mirrors/git-for-windows"

But when i type git --version it's returned an error like i don't installed nothing. Is that de problem?

Now I've tried this command below as an admin in cmd instead of using powershell. But i still can't use the pallet, in the node-red it's shows me that is not installed.

C:\Windows\system32>npm install node-red-contrib-ttn

grpc@1.19.0 install C:\Windows\system32\node_modules\grpc
node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp WARN Using needle for node-pre-gyp https download
[grpc] Success: "C:\Windows\system32\node_modules\grpc\src\node\extension_binary\node-v64-win32-x64-unknown\grpc_node.node" is installed via remote
npm WARN saveError ENOENT: no such file or directory, open 'C:\Windows\system32\package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open 'C:\Windows\system32\package.json'
npm WARN system32 No description
npm WARN system32 No repository field.
npm WARN system32 No README data
npm WARN system32 No license field.

  • node-red-contrib-ttn@2.0.5
    added 229 packages from 137 contributors and audited 747 packages in 85.539s
    found 0 vulnerabilities

You need to be in the users node-red- directory .node-red . This is reported whn you start node-red from the command line so you can see which one it is using.
and you shouldn't install as admin...
So yes it has now installed - but not in the correct place.

cd .node-red on your command prompt