I’m trying to install the node-red-contrib-telegrambot and node-red-contrib-uuid modules in nodered in heroku and I get an error:
ERR! engine Not compatible with your version of node/npm: [email protected]
npm ERR! notsup Required: {"node":"0.10.x || 0.8.x"}
How to fix this error?
I did not install other modules here, these are the first ones.
Tried redis – same error
Although locally I had no problems with these modules.
BuildLogID:
Building on the Heroku-20 stack
Determining which buildpack to use for this app
Node.js app detected
Resolving node version 16.x
Downloading and installing node 16.14.2
Using default npm version: 8.5.0
2
Answers
The problem is with the follow which is used for tracking changes in CouchDB databases.
Neither of those 2 modules you are trying to install appear to make use of this module in any of their dependencies this must be being driven by something else.
If you examine the dependencies of the
node-red-heroku
installer it hasnano@~5.11.0
which is what is pulling in the old version offollow
with the outdatedfollow
version.You need to raise this as an issue with against node-red-heroku on it’s git hub page: https://github.com/joeartsea/node-red-heroku
In the meantime the error shouldn’t actually stop you installing and using the nodes you want.
I dug into what @hardiilb was saying earlier in their answer, and digging further into my issue which I believe was very similar to yours:
email
node (which was broken out of the core for some very strange reason)Fix [so far]
I deleted the
"nano": "~10.x",
kvp and then I added all the npm modules that Node-RED was complaining about as dependencies in thepackage.json
file like this:Once I did that and deployed this branch I had made this change on, I was able to start using node-red and loading both custom nodes as well as custom modules with the
function
node as expected.