[ad_1]
I need to create a git repository for my project and share it with others through Github. But I’ve heard that we don’t need to include the node_modules folder when we commit the changes to the git repository. Others can Run npm install and install those modules themselves instead. My question is do I also need to ignore the package-lock.json file when I ignore the node_modules folder? I couldn’t find the package-lock.json file on the projects I’ve downloaded from the Internet so far. That package-lock.json file was created automatically when I ran npm install. So I have a doubt on whether to commit the package-lock.json file on my git repository or not.
[ad_2]