originallyus / node-red-contrib-alexa-local

An easy-to-use NodeRED node for adding Alexa capability to NodeRED. NO Alexa Skills required.
107 stars 25 forks source link

permission denied #22

Closed mugginsjm closed 6 years ago

mugginsjm commented 6 years ago

On deploy I get:

Error: EACCES: permission denied, mkdir '/nodered'

I don't know how to deal with this as nodered directory already exists. thanks John

torinnguyen commented 6 years ago

which user is NodeRED running with? it is recommended to use root to run it

mugginsjm commented 6 years ago

Hi Sorry but my linux knowledge is rubbish. I have installed NodeRed via Pete Scargill's script and don't know how to find this info.

torinnguyen commented 6 years ago

I'm sorry that is beyond my help. Different linux setup will have different configuration. How you have installed NodeRED in the first place will also make a different.

b3nj1 commented 6 years ago

This worked for me when I run as the user that owns the node-red process. Ideally, the package would not try to make a directory at / level, but this works around it (again for me):

sudo mkdir /nodered
sudo chown ${USER} /nodered