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