Migrate strapi from VPS 1 to VPS 2

How can I migrate Strapi completely from VPS1 to VPS2? I can dump and migrate Database, but the file gives errors.

This topic has been created from a Discord post (1222965024113299707) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

I did it successfully

Deleted node_modules and then npm install