I have an AWS instance that is created via ansible provisioning, I am at a point where I need to have the
.node-red folder in my default
ubuntu user account. When I install node-red (using root)
sudo npm install -g --unsafe-perm node-red node-red-admin and run it using
pm2, I get a root user instance of node-red running in the background. I don't want to have node-red running as root for security reasons, so I want to init my
ubuntu user to have the
but when I install node-red it only creates it for the
Should I be installing node-red without
sudo to be able for
ubuntu user to have the .node-red folder in /home/ubuntu/.node-red ?
I notice once I am in
ubuntu account I can run node-red and this sets up the folders for me on for that user's home folder.
A problem I have is when I try to run node-red via
ubuntu user, it hangs on the ansible-playbook running part, as I think it thinks the node-red process hasn't exited yet, and waits.
I was wondering if there is a way to create this init of node-red in
ubuntu home folder without running node-red?