Hey PLCnext team, I followed the directions for the node-red package manager video and installation and was able to get node-red up and running on the web-based manager. When I exit out and attempt to start up node-red on Putty again, it does not even recognize npm or even ipgk command and all my efforts went out the window. How do I prevent this frustrating occurrence from happening again? In what step do I need to do a “save” of some sort so I don’t spend two hours re-doing these steps? Everything else appears to be working well, I did the export PATH step. Thanks, Brendan Richart
Hi Brendan, after you have installed node-red it is not automatically started. There are different ways to achieve this. One way ist to use pm2:
1. export PATH=$PATH:/opt/bin:/opt/sbin:/PATH_TO_YOUR_NODERED 2. npm install -g pm2 3. pm2 start node-red 4. pm2 save 5. pm2 startupAnother way is described here: https://www.plcnext-community.net/index.php?option=com_content&view;=article&id;=379:how-to-start-node-red-automatically-on-boot-using-init-d&catid;=78&Itemid;=366⟨=en The PATH can be set permanently by following these steps:
1. nano ~/.profile
2. add the line “export PATH=$PATH:/opt/bin/:opt/sbin:/PATH_TO_YOUR_NODERED”
After a reboot, node-red will be started automatically and also npm should be available now.
