I have tried to use the POST /nodes since the documentation says it support the path where the node is located, https://nodered.org/docs/api/admin/methods/post/nodes. But the POST /nodes only works when the server is running in localhost, does anyone know if is possible install the node in a remote server using the http api?
Here is an example of the POST that I have tried:
curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -i http://REMOTE_SERVER_HOSTNAME:1880/nodes --data '{"module": "/tmp/testRemoteInstall"}'
From the doc you pointed to
module:
Either the name of the node module to install from the npm repository, or a full path to a directory containing the node module. Note: this api does not support the full range of module specifiers used by npm such as .tgz files or version qualifiers.
This means that the module
argument has to be one of the following:
You have 2 choices,
module