# "!packages/node\_modules" in .gitignore

**URL:** <https://discourse.nodered.org/t/packages-node-modules-in-gitignore/23632>\
**Category:** Core Development\
**Created:** [25 March 2020 16:49 UTC](https://discourse.nodered.org/t/packages-node-modules-in-gitignore/23632 "2020-03-25T16:49:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexk111](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alexk111/32/16891_2.png) [@alexk111](https://discourse.nodered.org/u/alexk111)\
**Post date:** [25 March 2020 16:49 UTC](https://discourse.nodered.org/t/packages-node-modules-in-gitignore/23632/1 "2020-03-25T16:49:01Z")

</div>

What is the idea behind the `!packages/node_modules` in `.gitignore`? How is it supposed to commit changes in NR?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [25 March 2020 17:04 UTC](https://discourse.nodered.org/t/packages-node-modules-in-gitignore/23632/2 "2020-03-25T17:04:44Z")

</div>

In the `.gitignore` file, a few lines further up, is a rule to ignore any `node_modules` directories.

The `!` at the start of the line you've highlighted inverts the rule - it means `packages/node_modules` should _not_ be ignored.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 May 2020 17:04 UTC](https://discourse.nodered.org/t/packages-node-modules-in-gitignore/23632/3 "2020-05-24T17:04:49Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
