Execute java script file from node red

I want to execute a java script file from node red.
how can i execute the file from node red.
Please help me out for executing the file from node red.

Look at the Exec node - it can be used to run any command you want.

I tried with that, but it is not executing.
I have one file i.e., App.js, and the file path is C:\Users\abc\Desktop>node App.js
so, how can i give the command in Exec node, and what is the command, I have to pass.

You will need to give the Exec node the full path to the node command you want it to run as well as the full path to the .js file.

Why are you trying to run a javascript file from Node-RED? Is this related to your redis questions in the other thread?

Yes, it is related to redis.

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