I am not specialist in Node.js but I don’t see anything wrong with this file.
What is doing during deployment is getting rid of whatever was deployed before and bringing down the latest code for deployment. Which the correct thing to do. Never leave any code behind (nuke the code) before deployment.
No. ‘rm -rf node_modules’ will not help you.
‘git clone URL’ is downloading the latest source code.
What you can do is create a run stage in this file, and run only that stage or
Open a command prompt and run this:
Hello,
Thank you so much for your reply.
If I delete the node_modules folder, then whenever I run npm install it will download all the modules. If I don’t delete the node_modules folder and run npm install, will there be any problem?