Npm install node-red-contrib-marantz-http results in exception

Hello,

I tried to install node-red-contrib-marantz-http but it fails with the following exception;

Versions
27 Dec 19:53:29 - [info] Node-RED version: v1.0.3
27 Dec 19:53:29 - [info] Node.js version: v12.14.0
27 Dec 19:53:29 - [info] Windows_NT 10.0.18362 x64 LE

command started from windows shell (cmd)

part stacktrace;

33 error enoent Error while executing:
33 error enoent undefined ls-remote -h -t https://github.com/estbeetoo/marantz-avr.git
34 error enoent This is related to npm not being able to find a file.

Anyone an idea what I do wrong?

Tnx in advance, Wim

How are you trying to install it?

Hello Colin,

First try was via Windows Shell (cmd) as administrator, in the npm home path a executed the command "npm install node-red-contrib-marantz-http"

Second try was via the Node-RED instance, waffle menu, manage palette, install, node-red-contrib-marantz-http, install
This results also in an identical error as the first try.

Because I am a new user, i'm not be able to upload the stacktrace logfile.

Kind regards, Wim

Hi Wim,
The above error means that either you don’t have git installed on the machine, or it is but it can’t find git in the PATH. Normally this error shows if you try to install from source/a git repository but don’t have git installed. Based on the error my guess is this node depends on a source install of another package but I can’t verify that immediately (I’m typing this from my phone). Let me see if I can confirm that in a bit. That’s also the reason it would appear regardless of your install method.

Edit: that was easier than I thought it would, that’s exactly what is going on: node-red-contrib-marantz-http/package.json at d41c31ab7613efbec61d3f722f4587ffcb70eee0 · estbeetoo/node-red-contrib-marantz-http · GitHub

Since the basic package is actually published to npm, my first step would be to file an issue to the creator of this node to have the dependency changed to npm instead of a git master branch, or to have a PR done with specific changes and/or publish their own version instead.

Hey afelix,

Very tnx for the golden tip, indeed after installing GIT on my local windows machine I was able to install the node-red-contrib-marantz-http package without any exception, the nodes are from now visible in Node-RED.

Muchos gracias and happy new year, Wim

1 Like