# Riot-nodes error

**URL:** <https://discourse.nodered.org/t/riot-nodes-error/47239>\
**Category:** General\
**Created:** [16 June 2021 12:59 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239 "2021-06-16T12:59:14Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [10 July 2021 15:14 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/109 "2021-07-10T15:14:38Z")

</div>

I try to install it on RPI4 and i've got this:

```auto
pi@raspberrypi:/usr/lib/node_modules/node-red $ npm install /usr/lib/node_modules/riot-nodes-master
npm notice created a lockfile as package-lock.json. You should commit this file.
+ riot-xbee@0.0.1
updated 1 package in 10.571s

5 packages are looking for funding
  run `npm fund` for details

```

. According to the above report is it installed properly?

---

<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:** [10 July 2021 15:40 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/110 "2021-07-10T15:40:21Z")

</div>

> [@Martin10](#):
>
> `/usr/lib/node_modules/node-red $ npm install /usr/lib/node_modules/riot-nodes-master`

You should have asked first.

It looks like you download the SRC to `/usr/lib/node_modules/riot-nodes-master`` then tryed to npm install it to `/usr/lib/node-red`

Why are you installing from a download?

Why in that folder?

You should run npm install from the path `~/.node-red`

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [10 July 2021 15:46 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/111 "2021-07-10T15:46:52Z")

</div>

Can't find this folder `~/.node-red`

---

<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:** [10 July 2021 15:54 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/112 "2021-07-10T15:54:51Z")

</div>

How did you install node-red on the raspberry pi? Did you use the official installer script?

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [10 July 2021 15:56 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/113 "2021-07-10T15:56:00Z")

</div>

actually, it was pre-installed

---

<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:** [10 July 2021 16:01 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/114 "2021-07-10T16:01:04Z")

</div>

> [@Martin10](#):
>
> it was pre-installed

Which probably means you have a very old version of node-red and very old node-js

what does `node -v` show?  
what version of node-red (look in the hamburger menu of node-red)?

You should update using official script before you do anything.

* * *

PS, if you insist on using the reply button at the bottom of this thread (instead of the reply button at the bottom of my comment) I dont get a notification & dont know you are replying to me.

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [10 July 2021 16:08 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/115 "2021-07-10T16:08:56Z")

</div>

v.12.8.4

One commenter here says that the `riot` project is very old, so maybe I should try an old version first and then update?

---

<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:** [10 July 2021 16:11 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/116 "2021-07-10T16:11:22Z")

</div>

> [@Martin10](#):
>
> I should try an old version first and then update?

Sure, worth a shot. I was expecting node-js version 8 or 10 (12 is not too old)

But updating node-red (and keeping node-js v12) is still recommended.

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [10 July 2021 16:21 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/117 "2021-07-10T16:21:21Z")

</div>

So, how to find `~/.node-red` ?

---

<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:** [10 July 2021 16:22 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/118 "2021-07-10T16:22:20Z")

</div>

did you try cd to it?

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/2/c2978297b9ba8112ce01c8a04a4be7958b696e61.png)

---

<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:** [10 July 2021 16:24 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/119 "2021-07-10T16:24:59Z")

</div>

I would still strongly recommend installing/updating node-red correctly using official PI installer script...

```auto
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

```

↑ do NOT use sudo!

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [10 July 2021 16:26 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/120 "2021-07-10T16:26:49Z")

</div>

OK, but how to find the directory of the folder?

---

<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:** [10 July 2021 16:28 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/121 "2021-07-10T16:28:11Z")

</div>

Like i showed you...

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/4/74517752314519369c1fd31ec83a4060116e886b.png)

`cd ~/.node-red`

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [10 July 2021 16:37 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/122 "2021-07-10T16:37:02Z")

</div>

Yes, i did this, but I'm used to window, so i wish to see the whole path

---

<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:** [10 July 2021 16:38 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/123 "2021-07-10T16:38:31Z")

</div>

`pwd`

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/6/96311b423854595e73e6f228fb3a87f231129715.png)

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [10 July 2021 16:44 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/124 "2021-07-10T16:44:36Z")

</div>

It was hidden, that's why i can't see it

---

<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:** [10 July 2021 16:45 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/125 "2021-07-10T16:45:36Z")

</div>

That what the `.` means (e.g. `.hidden-folder`)

You would probably benefit from using `mc` on linux if you are not familiar

- install midnight commander ( `sudo apt install mc` )

![zozBdU9PFz](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/7/8791d3d007b0df0ebdcf86ff57e85cf3d2a5c7d8.gif)

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [10 July 2021 16:57 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/126 "2021-07-10T16:57:07Z")

</div>

I will try this.  
I try to install and i've got the error for serial port, so now i have to looking for how to install it on RPI, right?

```auto
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! serialport@4.0.1 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the serialport@4.0.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2021-07-10T16_50_54_994Z-debug.log
pi@raspberrypi:~/.node-red $ 

```

---

<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:** [10 July 2021 17:00 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/127 "2021-07-10T17:00:28Z")

</div>

> [@Martin10](#):
>
> I try to install and i've got the error

What did you try to install?

Did you run node-red install/update script as I strongly recommended?

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [10 July 2021 17:08 UTC](https://discourse.nodered.org/t/riot-nodes-error/47239/128 "2021-07-10T17:08:00Z")

</div>

I thought, that we agree to try first with old version, because the **riot** project is old?

So, i try first to install the riot project.

[Previous page](https://discourse.nodered.org/t/riot-nodes-error/47239.md?page=4)

[Next page](https://discourse.nodered.org/t/riot-nodes-error/47239.md?page=6)
