Different node versions showing up on node-red vs linux terminal terminal

Hello, I have been running into some issues trying to set up email notifications. I have tried installing the node-red-node-email package using the Node Red install package feature but get the below error.

[err] npm ERR! notsup Required: {“node”:“>=18.0.0”}
[err] notsup Actual: {“npm”:“8.19.3”,“node”:“v16.19.1”}

I have updated my node/npm/nvm version and am still getting the same error. Below this are the versions I am getting in the linux terminal. I also tried installed the package in the linux terminal itself but it does not show up in node red.

ncdio@NCD-Edge-7EEA:~$ node -v
nv22.18.0
ncdio@NCD-Edge-7EEA:~$ npm -v
nvm -v10.9.3
ncdio@NCD-Edge-7EEA:~$ nvm -v
0.39.7

Thank you for your help!

Edit: Fixed it, see comment for details. Leaving this post up incase anyone has the same issue.

The sudo bypassed the nvm version so I had to install the 22.18 into sudo as well. Fixed the problem.

2 Likes