DEV Community

Discussion on: Venv for Vue?

 
ericgeek profile image
EricGeek

That would mean that you're checking your dependencies into git. Unless you have a specific reason for doing that, it's generally advised not to do that. It makes your git repository larger, often much larger, depending on your dependencies.

Thread Thread
 
briancaffey profile image
Brian Caffey

Do you have a file in your project called .gitignore? If you look in this file, you should see a line referencing node_modules. You can comment out this line, and then add node modules to git by running git add node_modules. If you are pushing your code to GitHub, I recommend that you do not push anything from node_modules.

Thread Thread
 
yobretyo profile image
Bret

I’m not using GitHub, I just created a new react project and it was greyed out

Thread Thread
 
briancaffey profile image
Brian Caffey

OK, if you used create-vue-app or a similar tool for starting a Vue project I think it will add .gitignore automatically. What is your concern with the node_modules files? In general there should be no reason to go into that folder. If you want to see what is installed there you can look into package.json.