After installing it on a local directory how will we start node-red from the command line? Calling node-red says it is not recognized as internal or external command. I have installed nodejs and performed a local install to an offline machine. I would like to start node-red in the same now.
node c:\Users\Documents\NodeRed\node_modules\node-red\red.js
this seems to have solved my issue.
So basically what I have done is:
- Create a Main folder where I dumped the nodejs msi installer
- Create a Node Red folder where I installed node-red locally
- used npm to install modules to this node-red local folder
- Created a batch script in the main folder which will run the nodejs installation and wait for its completion
- If the error code is zero then I will copy the contents of the node-red folder to some directory in the machine where node-red has to be installed
- Created a batch script which calls the above command and converted to exe using iexpress.exe
- Ran this exe as service