Install a new node module
Requires permission: nodes.write
Header | Value |
---|---|
Authorization |
Bearer [token] - if authentication is enabled |
Content-type |
application/json - if installing from a npm repository |
Content-type |
multipart/form-data - if installing a tgz package |
When installing a package from a npm repository the request body must be a JSON string with the following fields:
Field | Description |
---|---|
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. |
If installing a tgz package the request body must be a multipart/form-data
The following curl
example will install node-red-contrib-foo
.
Status Code | Reason | Response |
---|---|---|
200 |
Success | A Node Module object. See example response body |
400 |
Bad request | An Error response |
401 |
Not authorized | none |
404 |
Not found | none |
Node-RED: Low-code programming for event-driven applications.
Copyright OpenJS Foundation and Node-RED contributors. All rights reserved. The OpenJS Foundation has registered trademarks and uses trademarks. For a list of trademarks of the OpenJS Foundation, please see our Trademark Policy and Trademark List. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.
The OpenJS Foundation | Terms of Use | Privacy Policy | OpenJS Foundation Bylaws | Trademark Policy | Trademark List | Cookie Policy