Skip to content

array of paths as settings.nodesDir not documented (almost) #1131

Closed

Description

@guillaume-d

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...

Activity

  1. knolleary commented on Jan 27, 2017

    @knolleary
    Member

    Hi, that is true. The role of nodesDir diminished 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!

  2. modified the milestone: on Jun 6, 2017
  3. modified the milestones: , , on Jul 3, 2017
  4. removed this from the milestone on Jan 26, 2018
  5. Bryandero98 commented on Sep 6, 2026

    @Bryandero98
    Contributor

    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.

  6. added a commit that references this issue on Sep 7, 2026
    d5d883d
  7. added a commit that references this issue on Oct 27, 2026
    e99c327
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions