Node-RED has an incredibly rich resource of integrations available, but sometimes you need that little bit of extra functionality, or access to a Node.js module that doesn't have it's own custom nodes in Node-RED. We can easily import any npm module within the built-in Node-RED function nodes.
This is a companion discussion topic for the original entry at https://flowfuse.com/blog/2023/06/import-modules
Hi there. How is it possible to update the module version imported?
I start a project a few months ago, and the module used has been updated.
I know there is a package-lock.json file where versions are set, but is it possible to update the version without going down to that file?
The best way I found, is access the CLI from Nodered Admin IDE. With the
go to the folder where packages-lock.js is, and run
npm update. If you like to specify a versión for a specific mode, use
npm install --force firstname.lastname@example.org.
*** security issues ahead*