I guess you are using Linux?
What variety of Linux?
If it's Debian based use the Raspberry Pi installation script and it will automatically do everything you need. No need to create directories.
Ps. Unless you are using Docker or something like that
Do you actually have a user "nol"? I know that's used as an example in some places but you don't need to use it.
For example, on my raspberry pi I installed Node-red as the user "pi". The NR base directory is /home/pi/.node-red
'nol' stands for Nick O'Leary one of the developers of Node-RED. So you would use the user id you are installing Node-RED with.
As @jbudd said, if you are doing this on a raspberry, the current install script will generate the settings.js file. If you are using the current script, you will see this:
/** By default, all user data is stored in a directory called `.node-red` under
* the user's home directory. To use a different location, the following
* property can be used
*/
//userDir: '/home/nol/.node-red/',
as you can see, that option is commented out as a default.
That option is useful if you want to change the default location of your user data.
@jbudd@zenofmud interesting responses... I'm installing in a Nest.js web app which is an MVC wrapper of Express.js web app, which is a library of Node.js so, in essence, I'm installing it in a Node.js web app in a Windows environment... I did not have to provide a user when installing...
@knolleary Ok. Taking the default path value as a reference... and being that node-red created a new folder named $HOME in my project root: is /home/ pointing to $HOME?
Currently, node-red installed itself under $HOME... therefore I assume my value should be: userDir: '/home/.nodered/'