# Cannot install roku nodejs

**URL:** <https://discourse.nodered.org/t/cannot-install-roku-nodejs/96013>\
**Category:** General\
**Created:** [14 March 2025 20:42 UTC](https://discourse.nodered.org/t/cannot-install-roku-nodejs/96013 "2025-03-14T20:42:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MPELectronique](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mpelectronique/32/99492_2.png) [@MPELectronique](https://discourse.nodered.org/u/MPELectronique)\
**Post date:** [14 March 2025 20:42 UTC](https://discourse.nodered.org/t/cannot-install-roku-nodejs/96013/1 "2025-03-14T20:42:09Z")

</div>

Hello. I cannot install roku nodejs.

> Blockquote  
> pi@raspberrypi:~/Desktop/LG\_TV $ npm i rokujs  
> npm warn EBADENGINE Unsupported engine {  
> npm warn EBADENGINE package: 'scrap-favicon@1.0.4',  
> npm warn EBADENGINE required: { node: '\>=10.18.0 \<11 || \>=12.14.0 \<13' },  
> npm warn EBADENGINE current: { node: 'v18.20.7', npm: '10.8.2' }  
> npm warn EBADENGINE }  
> npm warn EBADENGINE Unsupported engine {  
> npm warn EBADENGINE package: 'superagent@7.0.1',  
> npm warn EBADENGINE required: { node: '\>=6.4.0 !13' },  
> npm warn EBADENGINE current: { node: 'v18.20.7', npm: '10.8.2' }  
> npm warn EBADENGINE }  
> npm error code ENOTEMPTY  
> npm error syscall rename  
> npm error path /home/pi/Desktop/LG\_TV/node\_modules/object-inspect  
> npm error dest /home/pi/Desktop/LG\_TV/node\_modules/.object-inspect-a65m8v0R  
> npm error errno -39  
> npm error ENOTEMPTY: directory not empty, rename '/home/pi/Desktop/LG\_TV/node\_modules/object-inspect' -\> '/home/pi/Desktop/LG\_TV/node\_modules/.object-inspect-a65m8v0R'  
> npm error A complete log of this run can be found in: /home/pi/.npm/\_logs/2025-03-14T20\_40\_03\_488Z-debug-0.log

> Blockquote

can you help me?  
thanks.  
Marc.

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [14 March 2025 20:59 UTC](https://discourse.nodered.org/t/cannot-install-roku-nodejs/96013/2 "2025-03-14T20:59:47Z")

</div>

This is not caused by the rokujs node.

Somewhere in the install scope there is the scrap-favicon node, this node is being installed (because npm validates all existing nodes when installing new nodes) and it has hard restrictions on what versions of NodeJS it will run on `required: { node: '>=10.18.0 <11 || >=12.14.0 <13' }`

This expands to

- will run on between 10.18.0 and 11
- or between 12.14.0 and 13

You need to work out what is using that node and why it's installed, it doesn't look to be a dependency of the rokujs node, so I suggest you try running

```auto
npm ls scrap-favicon

```

This should show which package it is a dependency of.

It doesn't look to have been updated in about 4-5 years

---

<div class="post-metadata">

**Author:** ![MPELectronique](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mpelectronique/32/99492_2.png) [@MPELectronique](https://discourse.nodered.org/u/MPELectronique)\
**Post date:** [14 March 2025 21:19 UTC](https://discourse.nodered.org/t/cannot-install-roku-nodejs/96013/3 "2025-03-14T21:19:13Z")

</div>

scrap-favicon@1.0.4

---

<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:** [14 March 2025 22:17 UTC](https://discourse.nodered.org/t/cannot-install-roku-nodejs/96013/4 "2025-03-14T22:17:59Z")

</div>

I don't think the EBADENGINE warnings are the reason the install is failing. I think the reason your install fails is actually this

> [@MPELectronique](#):
>
> npm error ENOTEMPTY: directory not empty, rename '/home/pi/Desktop/LG\_TV/node\_modules/object-inspect' -\> '/home/pi/Desktop/LG\_TV/node\_modules/.object-inspect-a65m8v0R'

I think that is saying that the folder '/home/pi/Desktop/LG\_TV/node\_modules/.object-inspect-a65m8v0R` already exists. That is a left over folder from some previous operation. Delete all such folders, with the random characters on the end that you see in the node\_modules folder.

---

<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:** [12 June 2025 22:18 UTC](https://discourse.nodered.org/t/cannot-install-roku-nodejs/96013/5 "2025-06-12T22:18:42Z")

</div>

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