You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
array of paths as settings.nodesDir not documented (almost) #1131
Since 0b8e8de (Node-RED 0.7.0 at least, April 2014!) an array of paths can be used for the value of settings.nodesDir, which is very handy if for example you want to build a Node-RED-based framework and need to separate the project/client-specific nodes from the framework ones (and cannot use $userDir/nodes for that), or also want to override stock Node-RED nodes.
Unfortunately this is (almost) not documented anywhere I could find (done a GitHub search and a Google site:nodered.org search for "nodesDir", emphasis mine):
Depending on where one starts learning Node-RED one gets different and contradictory information. I found about this feature only by chance by looking at the source code while debugging the loading of my custom nodes...
Hi @knolleary, I'd like to pick this up — happy to fix both spots: the nodesDir comment in settings.js here, and the matching entry in docs/user-guide/runtime/configuration.md on node-red.github.io (verified in the current runtime code that it accepts either a single string or an array, so I'll document both). Will open PRs on both repos shortly.
Activity
knolleary commentedon Jan 27, 2017
Hi, that is true. The role of
nodesDirdiminished when we started to support properly npm packaged nodes so hasn't had the attention it may need.Happy to accept a pull request to tidy any of these docs up!
Bryandero98 commentedon Sep 6, 2026
Hi @knolleary, I'd like to pick this up — happy to fix both spots: the
nodesDircomment insettings.jshere, and the matching entry indocs/user-guide/runtime/configuration.mdon node-red.github.io (verified in the current runtime code that it accepts either a single string or an array, so I'll document both). Will open PRs on both repos shortly.docs: clarify settings.js nodesDir accepts an array of paths (#5925)
docs: clarify nodesDir accepts an array of paths (node-red#433)