Riot-nodes error

Sorry, I meant to say also package-lock.json

I meant that you should post the file package-lock.json

package-lock.json (1.2 MB)

Have you got a folder called nodes in your .node-red folder? If so, what is in it?

I have folder node_modules and in it i have a lot of folders, like- node-red-contribe-xbee-api

Have you got a folder called nodes?

No, i don't

OK, well I have no idea what is causing the node-red-dashboard ignored message, but the Cannot read property 'forEach' error is caused by a bad node that it is trying to load. I suggest first removing (using npm remove) node-red-contrib-xbee, node-red-contrib-xbee-api and riot-xbee. Then restart node-red and make sure the forEach error has gone. Assuming that it has then install those again (one at a time), assuming that you know that you need them, and restart node-red again each time. When the forEach error comes back you will know that the node you have just installed is bad.

After removing these three, NR starts working again (in NR the xbee and xbee-api nodes were still there). Then I install riot-nodes-master and NR stops working again, so I guess this is the bad node?

If you get the forEach error, then yes.

Yes, i have this forEach error. So the project is bad? If i try this project on RPI is will have any differents?

I have no idea. As I said at the start, it is years old and appears to be abandoned so may no longer work at all.

I try to install this one too, but the result were almost the same (is says that hame missing package file) (GitHub - ReeceRobinson/NR-XBee: XBee node for use with Node-Red).

Is there any way to install ony libraries for the modified xbee nodes?

Please, any help?

In general- If we wish to create a new node we have to create a .JS code, right?

So, how to insert this .JS code in NR, in order to use it as node?

You can use Node.js packages in two ways with Node-RED if there isn't already a working node.

  1. Create your own node (or adapt one that is similar to what you want). This requires you to learn about how nodes and Node-RED work internally and you will need at least 3 files. A package.json, a .js file for the runtime code and a .html file for the Editor/configuration code.

  2. Install the package to your userDir folder and then create a reference to it either in the globals section of your settings.js or using the new features in the built-in function node which makes that a little simpler.

Note that not all node.js packages will work successfully with Node-RED but most seem to work just fine.

Please, any example tutorial?

Is this the only example that i can use?
https://nodered.org/docs/creating-nodes/first-node

Please, any example tutorial?

Is this the only example that i can use?
https://nodered.org/docs/creating-nodes/first-node

No. You can view the SRC code for pretty much any node that is published on GitHub.

By SRC code you mean the .JS code, or .JS, .JSON and HTML?

So, i have to copy the SRC and than follow this steps (Creating your first node : Node-RED), or there is other ways?

It's obvious, that this things are new to me, so can anyone show me an example?

There are thousands of examples.

Open the source code in any of these projects (all files are relevant).

Use Creating your first node : Node-RED as a how to beginners guide and the example node-red nodes source code projects as extra help.


TBH, if you ditch Windows 7 and move to Windows 10 or Ubuntu (or buy a raspberry pi), you could probably have fixed this 24 days ago. I doubt with your current level of programming knowledge you will find making a contrib node easier that starting again with a fresh node-red install.