Is it a good idea to check-in node-modules with Ionic 2 project

I am developing Ionic 2 app. There are many node-modules (around 19000 files). Is it a good idea to check-in all these files in source control?.

If not what is the alternate way so that when building ionic 2 app through Visual Studio 2015 it downloads needed dependencies on local machine, build server and from ionic command line.

I don’t even know what Visual Studio is, so I can’t comment on your second question, but an emphatic “no” on checking the contents of node_modules into version control. package.json should contain enough information so that a simple npm install populates node_modules on a fresh checkout.

Thanks for the reply. sounds good