I can't update nodes because it requires a higher version, do you know if the IoT2050 FS:04 basic can be updated to a higher version or up to what version I can use?
I believe the problem is that the version of nodejs that you are using (V12) is long out of support. The latest version of the email node needs at least 14. If you can't update nodejs then I think all you can do is to go back to an earlier version of the email node. The last of the 1.n.n series should be ok.
Did you import a flow which includes an email node?
Perhaps the missing email node is not part of node-red-node-email but some other widget.
You should start Node-red in safe mode, search your flows for email and replace it with node-red-node-email, which looks like it is installed successfully.
Don't import any flow, Node-RED is newly installed. In manage palette I installed 'node-red-node-email' and I get that directly.
Now what I have done is to remove the package inside manage palette and I have installed it through the terminal inside the ~/.node-red directory and then npm i node-red-node-email. The same error
How do I start in safe mode and see all the installed nodes?
As I asked, please post the startup log you get if you restart node red after you have added an email node and deployed.
On a pi you would do that by running, in a command window
Updated Node-RED to V3.0.2, then it is not visible in the browser.
I don't think the email node is giving an error because of the version.
root@iot2050-debian:~# node-red start
29 May 06:46:13 - [info]
Welcome to Node-RED
29 May 06:46:13 - [info] Node-RED version: v3.0.2
29 May 06:46:13 - [info] Node.js version: v12.22.12
29 May 06:46:13 - [info] Linux 5.10.104-cip3 arm64 LE
29 May 06:46:16 - [info] Loading palette nodes
29 May 06:46:32 - [info] Dashboard version 3.5.0 started at /ui
29 May 06:46:34 - [warn] ------------------------------------------------------
29 May 06:46:34 - [warn] [node-red-node-email/email] SyntaxError: Unexpected token '?'
29 May 06:46:34 - [warn] ------------------------------------------------------
29 May 06:46:34 - [warn] Missing node modules:
29 May 06:46:34 - [warn] - node-red-node-intel-gpio (0.0.6-IOT2050): mraa-gpio-ain, mraa-gpio-din, mraa-gpio-dout, mraa-gpio-pwm, mraa-gpio-led
29 May 06:46:34 - [info] Removing modules from config
29 May 06:46:34 - [info] Settings file : /root/.node-red/settings.js
29 May 06:46:34 - [info] Context store : 'default' [module=memory]
29 May 06:46:34 - [info] User directory : /root/.node-red
29 May 06:46:34 - [warn] Projects disabled : editorTheme.projects.enabled=false
29 May 06:46:34 - [info] Flows file : /root/.node-red/start
29 May 06:46:34 - [info] Creating new flow file
29 May 06:46:34 - [warn]
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
29 May 06:46:34 - [warn] Encrypted credentials not found
29 May 06:46:34 - [error] Unable to listen on http://127.0.0.1:1880/
29 May 06:46:34 - [error] Error: port in use
I don't like the look of any of that! Error: port in use suggests Node-red was still running when you tried to start it.
I don't ever run Node-red as root, but maybe that's enforced by your hardware?
Creating new flow file Have you never deployed even a simple inject - debug flow?
If I had this problem I would try version 1.19.1 cd ~/.node-red pwd whoami node-red-stop npm unistall node-red-node-email npm install node-red-node-email@1.19.1 node-red-start
It's all guesswork though since your setup seems so different from mine (Raspberry Pi)
I have already used Node-RED in another project. Now here in this IoT this is happening to me only with this node that gives error and I have to use it, others do not.
As @jbudd has suggested, try installing the older version of the email node.
Make sure you then stop node-red and restart after doing that (or power cycle if you don't know how to stop node-red). I suspect that the comment on the node's page is wrong and that it does need a later version.
Running on NodeJS v12 will lead to all sorts of problems.
If you can not upgrade the NodeJS version to at least v14 then you must downgrade Node-RED to 2.2.3 which will support NodeJS v12, but many nodes will be updated to expect to be running on Node-RED 3.2 and NodeJS v14+ these days.