node-red / node-red-nodes

Extra nodes for Node-RED
Other
988 stars 593 forks source link

Installation failed in latest node version above 18 #1057

Open selwin-007 opened 6 months ago

selwin-007 commented 6 months ago

Failed to install email node, below is the error message. why can't I install it in the latest node versions ??


2024-03-20T10:12:48.017Z Install : node-red-node-email 2.2.1

2024-03-20T10:12:48.064Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-node-email@2.2.1 2024-03-20T10:12:50.127Z [err] npm 2024-03-20T10:12:50.127Z [err] WARN config production Use --omit=dev instead. 2024-03-20T10:12:52.269Z [err] npm ERR! 2024-03-20T10:12:52.269Z [err] code EBADENGINE 2024-03-20T10:12:52.270Z [err] npm ERR! 2024-03-20T10:12:52.270Z [err] engine Unsupported engine 2024-03-20T10:12:52.270Z [err] npm ERR! 2024-03-20T10:12:52.270Z [err] engine Not compatible with your version of node/npm: @azure/msal-node@1.18.4 2024-03-20T10:12:52.270Z [err] npm ERR! notsup Not compatible with your version of node/npm: @azure/msal-node@1.18.4 2024-03-20T10:12:52.270Z [err] npm ERR! notsup Required: {"node":"10 || 12 || 14 || 16 || 18"} 2024-03-20T10:12:52.270Z [err] npm ERR! notsup Actual: {"npm":"10.4.0","node":"v20.11.1"}

knolleary commented 6 months ago

The module it is complaining about is @azure/msal-node - the version of that module does not appear to support Node 20.

In you .node-red directory, can you run npm list @azure/msal-node to see where that module is getting pulled in from?