0

I can't un-exclude node_modules in WebStorm 2018.2.3.

When I click to uncheck excluded nothing happens. I tried restarting my IDE and my laptop but got the same result.

Is there a reason? I found this link (for an older version of WebStorm) but it doesn't work for me: Can't remove node_modules from excluded folders in WebStorm

Uncheck excluded

LazyOne
  • 158,824
  • 45
  • 388
  • 391

2 Answers2

1

WebStorm auto-excludes node_modules folder from the project for better performance, but it's excluded only partially: direct project dependencies listed in package.json are added to JavaScript libraries for completion/navigation and thus indexed. You can still un-exclude certain folders explicitly by choosing Mark directory as | Not excluded from folder right-click menu in the Project tree on the left. But note that un-excluding the node_modules folder would have negative performance impact. See also WEB-24765

lena
  • 90,154
  • 11
  • 145
  • 150
  • Thanks a lot for your answer. I manage to did it's not very proper way : I delete node_modules from my git repo then i push -f to my repo it works but your solution seems better. Unfortunately I've tried to unexclude (as I explained before) in Webstorm preferences but it has no effects. That's why I did that. – Benjamin Maine Oct 08 '18 at 12:46
0

Thanks a lot for your answer. I manage to did it's not very proper way : I delete node_modules from my git repo then i push -f to my repo it works but your solution seems better. Unfortunately I've tried to unexclude (as I explained before) in Webstorm preferences but it has no effects. That's why I did that.