# Unable to install new node in node-red - OpenWRT

**URL:** <https://discourse.nodered.org/t/unable-to-install-new-node-in-node-red-openwrt/29757>\
**Category:** General\
**Created:** [9 July 2020 05:38 UTC](https://discourse.nodered.org/t/unable-to-install-new-node-in-node-red-openwrt/29757 "2020-07-09T05:38:43Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthikkarra](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@karthikkarra](https://discourse.nodered.org/u/karthikkarra)\
**Post date:** [9 July 2020 05:38 UTC](https://discourse.nodered.org/t/unable-to-install-new-node-in-node-red-openwrt/29757/1 "2020-07-09T05:38:43Z")

</div>

Hi All,

I have successfully installed node-red on openwrt and was also able to create flows and its working perfectly.

But when I try to install new nodes such as sql etc.. I am facing an `Illegal instruction] / rollbackFailedOptional: verb npm-session 513d559e2d002a53` error

this is happening with every node which I try to install.

Any suggestions ?

Thanks,  
Karthik.

---

<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:** [9 July 2020 07:29 UTC](https://discourse.nodered.org/t/unable-to-install-new-node-in-node-red-openwrt/29757/2 "2020-07-09T07:29:56Z")

</div>

What happens if you try from the command line ? Can you show us the complete log ?

---

<div class="post-metadata">

**Author:** ![karthikkarra](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@karthikkarra](https://discourse.nodered.org/u/karthikkarra)\
**Post date:** [9 July 2020 09:39 UTC](https://discourse.nodered.org/t/unable-to-install-new-node-in-node-red-openwrt/29757/3 "2020-07-09T09:39:35Z")

</div>

PFA of the screen shots of the errors from node-red UI and command line

command line error

 ![command_line_error](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/f/0fa5c0d8ce9267e971248af06fdb5063963cf7e1.png)

Node-RED UI error

 ![node_red_error](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/5/55dfe7ec43d9ebc1fc0f49b2b30a842c1d02c38c.png)

---

<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:** [9 July 2020 09:52 UTC](https://discourse.nodered.org/t/unable-to-install-new-node-in-node-red-openwrt/29757/4 "2020-07-09T09:52:08Z")

</div>

and what do you get if you try to install another node ? eg node-red-node-random ?  
How did you get nodejs 12 installed on openwrt ? is there a package for that now ?

---

<div class="post-metadata">

**Author:** ![karthikkarra](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@karthikkarra](https://discourse.nodered.org/u/karthikkarra)\
**Post date:** [9 July 2020 11:50 UTC](https://discourse.nodered.org/t/unable-to-install-new-node-in-node-red-openwrt/29757/5 "2020-07-09T11:50:18Z")

</div>

same result for even other node installations.I have tried with sql.  
nodejs12 is available in the openwrt packages repository in master branch

---

<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:** [9 July 2020 13:04 UTC](https://discourse.nodered.org/t/unable-to-install-new-node-in-node-red-openwrt/29757/6 "2020-07-09T13:04:52Z")

</div>

sounds like that nodejs package has a bug in it then as npm should work from the command line without node-red - is it compiled for the architecture you are running on ?

---

<div class="post-metadata">

**Author:** ![karthikkarra](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@karthikkarra](https://discourse.nodered.org/u/karthikkarra)\
**Post date:** [9 July 2020 13:09 UTC](https://discourse.nodered.org/t/unable-to-install-new-node-in-node-red-openwrt/29757/7 "2020-07-09T13:09:28Z")

</div>

Yes, I was able to compile.

when I run node v8.10, I am facing this error `env: can't execute 'node': no such file or directory openwrt`

any idea, why this is happening

---

<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:** [9 July 2020 13:22 UTC](https://discourse.nodered.org/t/unable-to-install-new-node-in-node-red-openwrt/29757/8 "2020-07-09T13:22:43Z")

</div>

We do have this apk for version 1.0.6 - [https://github.com/dceejay/openwrt-node-red/tree/master/dist](https://github.com/dceejay/openwrt-node-red/tree/master/dist) that uses the older default node+npm package

---

<div class="post-metadata">

**Author:** ![karthikkarra](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@karthikkarra](https://discourse.nodered.org/u/karthikkarra)\
**Post date:** [9 July 2020 13:37 UTC](https://discourse.nodered.org/t/unable-to-install-new-node-in-node-red-openwrt/29757/9 "2020-07-09T13:37:45Z")

</div>

I was able to install node-red directly on my device but I am getting the same error. Ofcourse the node and node-npm are versions as before.  
that uses the older default node+npm package - were you suggesting to use different version of node and node-npm ? Which version are you using ?

---

<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:** [9 July 2020 13:39 UTC](https://discourse.nodered.org/t/unable-to-install-new-node-in-node-red-openwrt/29757/10 "2020-07-09T13:39:45Z")

</div>

I think it drags in - [https://openwrt.org/packages/pkgdata/node-npm](https://openwrt.org/packages/pkgdata/node-npm)

---

<div class="post-metadata">

**Author:** ![karthikkarra](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@karthikkarra](https://discourse.nodered.org/u/karthikkarra)\
**Post date:** [9 July 2020 13:42 UTC](https://discourse.nodered.org/t/unable-to-install-new-node-in-node-red-openwrt/29757/11 "2020-07-09T13:42:09Z")

</div>

ok. I will check with 8.16 version. thats the only version left to check. rest I am facing some or the other errors.

any comment on this - when I run node v8.10, I am facing this error `env: can't execute 'node': no such file or directory openwrt`

---

<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:** [9 July 2020 13:52 UTC](https://discourse.nodered.org/t/unable-to-install-new-node-in-node-red-openwrt/29757/12 "2020-07-09T13:52:35Z")

</div>

nope - that's a node thing not Node-RED - I just use the package from the repo - you'd have to ask the OpenWRT project or package maintainer.

---

<div class="post-metadata">

**Author:** ![karthikkarra](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@karthikkarra](https://discourse.nodered.org/u/karthikkarra)\
**Post date:** [9 July 2020 14:05 UTC](https://discourse.nodered.org/t/unable-to-install-new-node-in-node-red-openwrt/29757/13 "2020-07-09T14:05:44Z")

</div>

ok. yes, thats not a node-red thing. just wanted to know if you have faced any such.

---

<div class="post-metadata">

**Author:** ![karthikkarra](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@karthikkarra](https://discourse.nodered.org/u/karthikkarra)\
**Post date:** [10 July 2020 01:29 UTC](https://discourse.nodered.org/t/unable-to-install-new-node-in-node-red-openwrt/29757/14 "2020-07-10T01:29:32Z")

</div>

I am facing the same issue when running node v8.16 as with node v8.10. `env: can't execute 'node': no such file or directory openwrt`.

 ![node_8_16](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/b/cb896311d7cb2091d0e66efeda48e1c9c4a0dde6.png)

---

<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:** [10 July 2020 08:03 UTC](https://discourse.nodered.org/t/unable-to-install-new-node-in-node-red-openwrt/29757/15 "2020-07-10T08:03:59Z")

</div>

Sorry - I think you are going to have to ask on an OpenWRT forum - probably more users over there.  
what does just typing `node -v` and `npm -v` on the command line report ?

---

<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:** [8 September 2020 08:04 UTC](https://discourse.nodered.org/t/unable-to-install-new-node-in-node-red-openwrt/29757/16 "2020-09-08T08:04:19Z")

</div>

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