whenever I deploy the project it shows this Error, I have tried restarting the server, PC but nothing helped.
how to resolve "Flows stopped due to missing node types. Check logs for details." Error in Node Red?
17.6k Views Asked by Junaid Yousaf Lodhi AtThere are 2 best solutions below

Two ways you can do this: (1) a package manager like NPM or Yarn OR (2) the Node-Red Pallette Manager.
To start, it is best to search for the nodes that the error says you are missing in the flow library. This should give you an idea of the packages that you are missing/need to install.
Package Manager
You need to install the proper nodes wherever you are deploying. Typically, this is done via npm, but you can also use yarn.
For each, you just need to run the install command that will install the missing package and add it to the package.json file that should already exist in your Node-Red project. Notes on how to do that can be found in NPM docs and Yarn docs.
Pallette Manager
You can also do the installation via the Pallette Manager if you are unfamiliar with package managers or don't have the ability to use one. Info on how to do this can be found in the Node-Red docs.
I ended up backing up each flow then deleting each flow to see the problem is really from "missing nodes". I deleted all flows and did not resolve the problem. I restarted and rebooted Raspberry Pi in between. Finally, I updated and upgraded the linux system then updated the nodered:
Here is the status:
The NodeRed is running...