# Node-red-contrib-mpi-s7 installation error

**URL:** <https://discourse.nodered.org/t/node-red-contrib-mpi-s7-installation-error/38837>\
**Category:** Industrial\
**Created:** [9 January 2021 12:33 UTC](https://discourse.nodered.org/t/node-red-contrib-mpi-s7-installation-error/38837 "2021-01-09T12:33:49Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![parthsarthi94](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/parthsarthi94/32/35053_2.png) [@parthsarthi94](https://discourse.nodered.org/u/parthsarthi94)\
**Post date:** [9 January 2021 12:33 UTC](https://discourse.nodered.org/t/node-red-contrib-mpi-s7-installation-error/38837/1 "2021-01-09T12:33:49Z")

</div>

undefined ls-remote -h -t ssh://git@github.com/gfcittolin/node-usb.git

---

<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:** [9 January 2021 13:45 UTC](https://discourse.nodered.org/t/node-red-contrib-mpi-s7-installation-error/38837/2 "2021-01-09T13:45:08Z")

</div>

Welcome to the forum @parthsarthi94.

Please show us the command you are using and the full output. Also what OS you are running? When pasting the output here use the `</>` button at the top of the forum entry window and paste it in.

---

<div class="post-metadata">

**Author:** ![TonHuijs](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tonhuijs/32/34604_2.png) [@TonHuijs](https://discourse.nodered.org/u/TonHuijs)\
**Post date:** [9 January 2021 18:06 UTC](https://discourse.nodered.org/t/node-red-contrib-mpi-s7-installation-error/38837/3 "2021-01-09T18:06:12Z")

</div>

> [@parthsarthi94](#):
>
> ssh://git@github.com/gfcittolin/node-usb.git

Dear...

The question isn't 100% clear for me.  
But I think you are looking for a connection S7 with MPI of Siemens PLC.  
In stead of communication over ethernet,  
S7 MPI works with T-sap adres..MPI = Multi Point Interface.  
This is the location of the communication port on the "backbone bus".  
mostly the MPI port of the PLC does have adres 2.1  
I can't explain hou to program it but you need to communicatie with this number.  
I think you better can switch to put and get command.  
See for aditional information Siemens:  
[Siemens PLC document](https://cache.industry.siemens.com/dl/files/951/92269951/att_54641/v5/s7communication_s7-1200_s7-300_en.pdf)

Hopefully this will help you.

Best Regards Ton

---

<div class="post-metadata">

**Author:** ![parthsarthi94](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/parthsarthi94/32/35053_2.png) [@parthsarthi94](https://discourse.nodered.org/u/parthsarthi94)\
**Post date:** [11 January 2021 04:17 UTC](https://discourse.nodered.org/t/node-red-contrib-mpi-s7-installation-error/38837/4 "2021-01-11T04:17:48Z")

</div>

OS is Yocto 2.6 based OpenEmbedded for IoT2040 Siemens Gateway

```auto
`npm i -g -unsafe--perm node-red-contrib-mpi-s7`

```

output:

```auto
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/gfcittolin/node-usb.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /home/root/.npm/_logs/2021-01-11T04_16_18_667Z-debug.log

```

---

<div class="post-metadata">

**Author:** ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)\
**Post date:** [11 January 2021 06:18 UTC](https://discourse.nodered.org/t/node-red-contrib-mpi-s7-installation-error/38837/5 "2021-01-11T06:18:00Z")

</div>

> [@parthsarthi94](#):
>
> `npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/gfcittolin/node-usb.git`

I think you need to have **Git** installed for that line to succeed. 🧐

I'm not familiar with Yocto, but it doesn't seem to be a general purpose Linux distribution. So you'd have to consult their docs on how to achieve that.

---

<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:** [11 January 2021 09:34 UTC](https://discourse.nodered.org/t/node-red-contrib-mpi-s7-installation-error/38837/6 "2021-01-11T09:34:01Z")

</div>

Is that the full output from the install command?

I am not sure that error is actually caused by a problem with that node, it may be due to something else. Please go to your .node-red folder and run  
`npm list node-usb`  
and  
`npm list -g node-usb`  
and show us what you get.  
Also please post the file `package.json`

Also are you able to install any other nodes, or do you get the same error there?

---

<div class="post-metadata">

**Author:** ![parthsarthi94](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/parthsarthi94/32/35053_2.png) [@parthsarthi94](https://discourse.nodered.org/u/parthsarthi94)\
**Post date:** [11 January 2021 09:57 UTC](https://discourse.nodered.org/t/node-red-contrib-mpi-s7-installation-error/38837/7 "2021-01-11T09:57:03Z")

</div>

package.json

```auto
{
  "name": "node-red-project",
  "description": "A Node-RED Project",
  "version": "0.0.1",
  "private": true,
  "dependencies": {
    "node-red-dashboard": "*",
    "node-red-node-serialport": "*",
    "node-red-contrib-boolean-logic": "*",
    "node-red-contrib-iiot-opcua": "*",
    "node-red-contrib-modbus": "*",
    "@mindconnect/node-red-contrib-mindconnect": "*"
  }
}

```

i don't get any output on npm list node-usb & npm list -g node-usb

Yes, i am able to install other nodes.

---

<div class="post-metadata">

**Author:** ![parthsarthi94](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/parthsarthi94/32/35053_2.png) [@parthsarthi94](https://discourse.nodered.org/u/parthsarthi94)\
**Post date:** [11 January 2021 09:59 UTC](https://discourse.nodered.org/t/node-red-contrib-mpi-s7-installation-error/38837/8 "2021-01-11T09:59:45Z")

</div>

i am going to try and build the image with git, and install the node again

thank you for your reply

---

<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:** [11 January 2021 10:21 UTC](https://discourse.nodered.org/t/node-red-contrib-mpi-s7-installation-error/38837/9 "2021-01-11T10:21:50Z")

</div>

That's odd, I can't work out why it is trying to access `github.com/gfcittolin/node-usb`.

---

<div class="post-metadata">

**Author:** ![parthsarthi94](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/parthsarthi94/32/35053_2.png) [@parthsarthi94](https://discourse.nodered.org/u/parthsarthi94)\
**Post date:** [11 January 2021 10:27 UTC](https://discourse.nodered.org/t/node-red-contrib-mpi-s7-installation-error/38837/10 "2021-01-11T10:27:45Z")

</div>

node-red-contrib-mpi-s7 Package.json

```auto
{
    "name": "node-red-contrib-mpi-s7",
    "version": "1.0.0-beta.1",
    "description": "Node-RED nodes to communicate with Siemens MPI/PPI/DP adapters",
    "main": "index.js",
    "dependencies": {
        "mpi-s7": "^0.3.1"
    },
    "repository": {
        "type": "git",
        "url": "https://github.com/st-one-io/node-red-contrib-mpi-s7.git"
    },
    "bugs": {
        "url": "https://github.com/st-one-io/node-red-contrib-mpi-s7/issues"
    },
    "keywords": [
        "hardware",
        "s7",
        "siemens",
        "plc",
        "mpi",
        "ppi",
        "dp",
        "profibus",
        "node-red"
    ],
    "node-red": {
        "nodes": {
            "mpi-s7": "red/mpi-s7.js"
        }
    },
    "author": "ST-One",
    "license": "GPL-3.0-or-later"
}

```

this is the json for the mpi-s7 library

and i saw that why it is going for [github.com/gfcittolin/node-usb](http://github.com/gfcittolin/node-usb)

the above contrib-mpi-s7 is dependent on mpi-s7 following is the package.json for it:

```auto
{
  "name": "mpi-s7",
  "version": "0.3.1",
  "description": "Node.JS library to communicate with MPI-USB adapters",
  "main": "src/index.js",
  "scripts": {
    "test": "nyc --reporter=html --reporter=text --reporter=text-summary mocha --timeout=3000 test/ **/**.spec.js",
    "doc": "jsdoc -d doc/jsdoc/ -r -R README.md src/"
  },
  "author": "Guilherme Francescon Cittolin <guilherme@st-one.io>",
  "license": "GPL-3.0-or-later",
  "devDependencies": {
    "chai": "^4.2.0",
    "jsdoc": "^3.6.5",
    "mocha": "^8.1.3",
    "nyc": "^15.1.0"
  },
  "dependencies": {
    "usb": "github:gfcittolin/node-usb"
  }
}

```

here you can see they the dependencies are usb:github:gfcittolin/node-usb

---

<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:** [11 January 2021 11:08 UTC](https://discourse.nodered.org/t/node-red-contrib-mpi-s7-installation-error/38837/11 "2021-01-11T11:08:32Z")

</div>

Yes, you are right, I missed that. I wonder whether this is an oversight as I see that the published version of usb is the same as in that repository. I have submitted an issue to ask that question. [Pulls in github:gfcittolin/node-usb when installing. · Issue #1 · st-one-io/node-red-contrib-mpi-s7 · GitHub](https://github.com/st-one-io/node-red-contrib-mpi-s7/issues/1)

---

<div class="post-metadata">

**Author:** ![parthsarthi94](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/parthsarthi94/32/35053_2.png) [@parthsarthi94](https://discourse.nodered.org/u/parthsarthi94)\
**Post date:** [11 January 2021 11:14 UTC](https://discourse.nodered.org/t/node-red-contrib-mpi-s7-installation-error/38837/12 "2021-01-11T11:14:57Z")

</div>

thank you i will try build the IoT2040 image with git installed and try this node and update the output

---

<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:** [11 January 2021 12:31 UTC](https://discourse.nodered.org/t/node-red-contrib-mpi-s7-installation-error/38837/13 "2021-01-11T12:31:42Z")

</div>

@parthsarthi94 I have seen others with this device struggle install and/or use a few recent nodes (including some of the S7 nodes) due to it only having nodejs V8

As you are building an image, if at all possible, take node to V14 or 12.

Please let us all know how you get on.

---

<div class="post-metadata">

**Author:** ![AJGG](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@AJGG](https://discourse.nodered.org/u/AJGG)\
**Post date:** [26 February 2021 07:18 UTC](https://discourse.nodered.org/t/node-red-contrib-mpi-s7-installation-error/38837/14 "2021-02-26T07:18:39Z")

</div>

I have same problem.

---

<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:** [27 April 2021 07:19 UTC](https://discourse.nodered.org/t/node-red-contrib-mpi-s7-installation-error/38837/15 "2021-04-27T07:19:34Z")

</div>

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