here is where my node-red local install resides
C:\Node-red-Try2\node_modules.bin
based on that, where might I find the node red workspace folder?
this is with regards to Kuema's advice from here:
here is where my node-red local install resides
C:\Node-red-Try2\node_modules.bin
based on that, where might I find the node red workspace folder?
this is with regards to Kuema's advice from here:
Welcome to the forums @jimmytang8855
The script that starts Node RED - is not enough to ascertain where the userDir
is.
but based on defaults: its usually ~/.node-red
~
: The user's (that is running Node RED) OS home directory
Also the start up transcript usually tell you.
Windows : C:/users/<User>/.node-red
*Nix : /home/<User>/.node-red
Again <User>
= who is running Node RED
thank you marcus
just so theres a complete picture for the post- when i run node-red from cmd, here is part of what scrolls
2 Aug 21:35:52 - [info] Node-RED version: v4.0.2
2 Aug 21:35:52 - [info] Node.js version: v20.16.0
2 Aug 21:35:52 - [info] Windows_NT 10.0.22631 x64 LE
2 Aug 21:35:52 - [info] Loading palette nodes
2 Aug 21:35:53 - [info] Settings file : C:\Users\admin.node-red\settings.js
2 Aug 21:35:53 - [info] Context store : 'default' [module=memory]
2 Aug 21:35:53 - [info] User directory : \Users\admin.node-red
2 Aug 21:35:53 - [warn] Projects disabled : editorTheme.projects.enabled=false
2 Aug 21:35:53 - [info] Flows file : \Users\admin.node-red\flows.json
so flows.json appears to be in C:\Users\admin.node-red\
is there any way to change the settings so the workspace is pointed elsewhere? for instance C:\node-red\Workspace
i wonder if thats more of a nodejs side effect or a node-red thing (app isn't bound to a single parent directory).
I'm not a windows user, but you can set the userDir
as a command line argument, that is used to start Node RED
node-red --userDir C:/Some-Directory
Just remember, the user account used to run Node RED will need read/write access to that folder
Also, node-red --help
will show you all the options available.
for windows:
node-red --userDir C:\NRWS
working like a champ
pretty handy because now i can have several workspace environments for testing various nodes and its no longer tied to a user account (a little more generic for multi-users)
this is good to know as well, i can use the help in conjunction with google to see how to implement the various options.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.