# Can't find module mraa

**URL:** https://discourse.nodered.org/t/cant-find-module-mraa/947
**Category:** General
**Created:** [20 June 2018 08:28 UTC](https://discourse.nodered.org/t/cant-find-module-mraa/947 "2018-06-20T08:28:12Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Dhiaa](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@Dhiaa](https://discourse.nodered.org/u/Dhiaa)
#### Post date: [20 June 2018 08:28 UTC](https://discourse.nodered.org/t/cant-find-module-mraa/947/1 "2018-06-20T08:28:12Z")

</div>

Hi,

I am getting some errors when starting Node-red. Here is it:  
[node-red-node-intel-gpio/mraa-gpio-ain] Error: Cannot find module ‘mraa’ (line:3)  
[warn] [node-red-node-intel-gpio/mraa-gpio-din] Error: Cannot find module ‘mraa’ (line:3)  
[warn] [node-red-node-intel-gpio/mraa-gpio-dout] Error: Cannot find module ‘mraa’ (line:3)  
[warn] [node-red-node-intel-gpio/mraa-gpio-pwm] Error: Cannot find module ‘mraa’ (line:3)

I had a similar problem with moment and I fixed it by adding “moment”: “^2.14.1” to my package.json and then I did: npm install.  
Now I am trying to do something similar with mraa, but it is not working. I still get the same error. Any suggestions?

Thanks in advance  
Dhiaa

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [20 June 2018 11:13 UTC](https://discourse.nodered.org/t/cant-find-module-mraa/947/2 "2018-06-20T11:13:11Z")

</div>

> [@Dhiaa](#):
>
> node-red-node-intel-gpio

did you read the [note](https://flows.nodered.org/node/node-red-node-intel-gpio) about the node ?

---

<div class="post-metadata">

### Author: ![Dhiaa](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@Dhiaa](https://discourse.nodered.org/u/Dhiaa)
#### Post date: [20 June 2018 11:49 UTC](https://discourse.nodered.org/t/cant-find-module-mraa/947/3 "2018-06-20T11:49:16Z")

</div>

Yes, I did. I tried to install mraa, but it didn't work. I am getting errors. See the attached picture.

 ![Capture](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/273a0d521b4150a0815c7acd341c42f404868a65.PNG)

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [20 June 2018 11:57 UTC](https://discourse.nodered.org/t/cant-find-module-mraa/947/4 "2018-06-20T11:57:31Z")

</div>

1. you don’t show the entire log from when you start the install
2. the log is telling you to make sure of something. Did you? nd what is the answer to what it is telling you to do.

(I’m deliberately making you look at the information you provided so you can learn how to solve your own problem)

---

<div class="post-metadata">

### Author: ![Dhiaa](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@Dhiaa](https://discourse.nodered.org/u/Dhiaa)
#### Post date: [20 June 2018 12:02 UTC](https://discourse.nodered.org/t/cant-find-module-mraa/947/5 "2018-06-20T12:02:50Z")

</div>

Thank you for replying.  
I post here when I’ve tried almost everything I can. The log tells me to make sure node is updated and npm are installed. All of that are done, still get the same errors when trying to install mraa, so actually I don’t think the log messages tell exactly where the problem lies.

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [20 June 2018 12:07 UTC](https://discourse.nodered.org/t/cant-find-module-mraa/947/6 "2018-06-20T12:07:11Z")

</div>

so what versions of node.js and NPM are you on?  
Also what version of NR?

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [20 June 2018 12:10 UTC](https://discourse.nodered.org/t/cant-find-module-mraa/947/7 "2018-06-20T12:10:38Z")

</div>

and what version of the mraa libraries do you have installed?

---

<div class="post-metadata">

### Author: ![Dhiaa](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@Dhiaa](https://discourse.nodered.org/u/Dhiaa)
#### Post date: [20 June 2018 12:21 UTC](https://discourse.nodered.org/t/cant-find-module-mraa/947/8 "2018-06-20T12:21:30Z")

</div>

node: v10.4.1  
npm: 3.5.2  
nr? what is it?

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [20 June 2018 12:25 UTC](https://discourse.nodered.org/t/cant-find-module-mraa/947/9 "2018-06-20T12:25:12Z")

</div>

You’ve missed answering what version of the mraa libraries do you have installed

nr = Node-RED

---

<div class="post-metadata">

### Author: ![Dhiaa](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@Dhiaa](https://discourse.nodered.org/u/Dhiaa)
#### Post date: [20 June 2018 12:27 UTC](https://discourse.nodered.org/t/cant-find-module-mraa/947/10 "2018-06-20T12:27:31Z")

</div>

Sorry, I didn’t know. Node red version: v0.18.7. I have’t installed mraa yet, bro. This is what I am asking about.

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [20 June 2018 12:41 UTC](https://discourse.nodered.org/t/cant-find-module-mraa/947/11 "2018-06-20T12:41:39Z")

</div>

No I'm talking about the mraa libraries not the mraa node.js package

You said you had tried almost everything you can.

I would start by re-reading the ReadME for the node, linked to in the second post. It asks you to check that you have the latest version of the mraa libraries installed.

> Ensure the latest version of mraa libraries are installed

It might also be worth checking the mraa readme on npmjs for any other requirements.

---

<div class="post-metadata">

### Author: ![mapos](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@mapos](https://discourse.nodered.org/u/mapos)
#### Post date: [19 September 2018 08:25 UTC](https://discourse.nodered.org/t/cant-find-module-mraa/947/12 "2018-09-19T08:25:57Z")

</div>

Hi, i have also tried already to install MRAA on a Raspi PI, for use in NR but with no success so far.  
main problem has been failing to install it locally, the need then to install MRAA global, and then for some reason the mraa "require" failed to work..  
i would like then to run now a clean installation again. is there any procedure you could suggest before i end-up in some other end point?  
i'm going to use using latest node version and NR 0.19.3

Thanks

M

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [19 September 2018 09:12 UTC](https://discourse.nodered.org/t/cant-find-module-mraa/947/13 "2018-09-19T09:12:11Z")

</div>

What is the end result you are trying to get to ? (Do you really need to use mraa ? - do you just need gpio ? or does mraa give you something extra ?)

---

<div class="post-metadata">

### Author: ![mapos](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@mapos](https://discourse.nodered.org/u/mapos)
#### Post date: [19 September 2018 09:38 UTC](https://discourse.nodered.org/t/cant-find-module-mraa/947/14 "2018-09-19T09:38:17Z")

</div>

Not really required..... however we use an i2C air quality sensor MICSV89 for which are available UPM/MRAA libraries so we hoped to quickly test that way...also there are other UPM libraries for a large number of sensors... while there is a lack in NR... just a few available  
end result is of course possibly to do not use MRAA just for that, but you know...  
certanlly is a shortcut to make evaluation tests, or in the end could also be a ready way to make wider the IOT scope of NR.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [19 September 2018 10:44 UTC](https://discourse.nodered.org/t/cant-find-module-mraa/947/15 "2018-09-19T10:44:45Z")

</div>

Ah right so yes - getting mraa working would be rather useful.
