If the files in node_modules are all installed via NPM dependencies called out in the package.json file, you should add a .gitignore file that excludes the node_modules directory from this repository. This is standard practice, will clean up the repo, and will avoid potentially pinning users to old or insecure versions of dependencies.
If the files in node_modules are all installed via NPM dependencies called out in the package.json file, you should add a .gitignore file that excludes the node_modules directory from this repository. This is standard practice, will clean up the repo, and will avoid potentially pinning users to old or insecure versions of dependencies.