Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to ignore node_modules using .gitignore?

I’m not sure how to ignore files on .gitignore, I think it has 3 options but I don’t know the correct one

  1. /node_modules
  2. .node_modules
  3. .node_modules/

Please, can you tell me which is the correct one or if none of the 3 works, can you tell me how to ignore files on .gitignore?

I really appreciate any help you can provide.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

use node_modules or /node_modules both should work also try to look at the node.gitignore, it will give you an idea on what to ignore in your project

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading