Johnny Gérard• 640
@johnnygerard
Posted
Hi James,
To avoid committing the node_modules
folder in your Git repository, add an entry to your .gitignore
file:
/node_modules/
When anyone clones your repo, they can reinstall npm packages with npm install
or npm ci
.
Marked as helpful
0
James Brown• 260
@jamesbrown173
Posted
@johnnygerard Thanks Johnny, I'll definitely do that in my next project!
1