[NEWBIE] node-red-admin hash-pw

Hi,
I have just installed Node-Red on my Qnap (container station) and now I would like to secure it with a password.
I understand (https://nodered.org/docs/security) that I need to edit "settings.js"
I found such a file in /share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/97fdfecb5.........40ade211b/diff/usr/src/node-red/node_modules/node-red/
But before editing that file I need to generate the password hash
My problem : I know almost nothing about Unix.
Where do I type the command "npm install -g node-red-admin"
It seems like everywhere type that command I get the message
"-sh: npm: command not found"

Thanks for reading my question
Eric

I'd start node-red first and check that that settings.js file is the correct one (Node-RED logs which on it is using on startup)

Starting up Node-RED would also allow you to check the version of Node-RED and nodejs before you go too far :slight_smile:

How did you install Node-RED? Did that install npm?

Thanks for the tip about settings,js !
I think I did not found the correct one
It seems like I should find that file in a data/ directory
https://drive.google.com/file/d/1W9lJeJaAXVcdjUqRjEYGUcUbaB_Vzodi/view?usp=sharing

Don't forget to also configure for access via https not http (otherwise that password is passed in clear text over the network).