I’m developing custom nodes in a directory specified with the nodesDir property in the settings.js file. This set-up used to work up to Node-RED 2.2.2. However, I’ve just upgraded to Node-RED 3.0.2 and now the server crashes immediately on start-up, using a settings.js file that used to work before the upgrade.
However, if I just remove the following line from my settings.js file, then Node-RED 3.0.2 will start normally ... but of course without my custom nodes.
nodesDir: '/home/node-red/varenne-nodes'
Could it be a regression with Node-RED 3.0 ? Or something specific to my environment ?
The first settings.js works fine with Node-RED 3.0.2. The second file crashes the server on start-up. The only difference is the presence of the nodesDir property in the second file.
So the line you took out is actually nodesDir: '/home/node-red/varenne-nodes',
which is not quite what you said. Had you not removed the trailing comma then I would have expected it to fail, though not in the way you said. Since you have also removed the comma then there does appear to be an issue.
It would probably be worth correcting the issue on github, just to avoid confusion.
Thank you for looking into my problem. Unfortunately, the problem is not a syntax error in settings.js.
If I move my custom nodes from nodesDir to the default ./node-red/nodes ... then Node-RED will start normally, with my custom nodes. This looks like a regression with Node-RED 3 on the nodesDir setting.
I've updated the GitHub issue with this new information.