What is the difference between npm install and npm run build?

What is the difference between npm install and npm run build?

I have noticed in my project that sometimes npm starts failing when npm install is performed, but, upon running npm run build, it works just fine.

How do the inner workings of these two targets namely install and run build differ?

4 Answers
4

Leave a Comment