Alternate-node-red-installer and pkg

Well, the first thing to fix are the warnings. They all say the same thing and it points to the httpNodeRoot property in your settings.js - it is set to false which turns off the ability to use http-in nodes. Set it to an empty string instead.

The errors look like they come from you trying to use node.js modules in function nodes. The packager won't have picked those up and so your executable can't do anything when it comes to them. Move the require statements to the globals section of the settings.js file and make sure they are listed as dependencies in the userDir package.json file so that the packager includes them. Then adjust your function nodes to remove the references in setup and change the code to get a reference to the module from the global context.

e.g.

const fs = global.get('fs')
1 Like