Standard practice is to maintain a package.json file to describe dependencies, however these dependencies should not be committed to the repository. Instead a .gitignore file should be added that explicitly states that node_modules should not be tracked by git. Upon cloning the repository a user can simply run npm install to download needed dependencies.
Standard practice is to maintain a
package.json
file to describe dependencies, however these dependencies should not be committed to the repository. Instead a.gitignore
file should be added that explicitly states thatnode_modules
should not be tracked by git. Upon cloning the repository a user can simply runnpm install
to download needed dependencies.