In general, you should not add the node_modules
to your version control.If you have an artifact repository (TFS/AzDO offers this feature as Package Management since 2017), you should use that to store the licensed packages.
The comment properly suggested to save package.json
and package-lock.json
in version control to allow other developers and the CI/CD pipeline to rebuild the app.
BTW it is incorrect to say TFS as Team Foundation Server, now Azure DevOps, allows using two version control systems, Git and TFVC, since 2013.