Visual Studio Crashes Due to NPM

The Issue

I've just started using Visual Studio and so far the experience has been great. The Web Essentials plugin makes web development a lot better. Unfortunately Visual Studio has not been playing nice when I select to "Open a Website" that is using NPM. My assumption is that the issue is a result of NPM's deeply nested directory structure and Microsoft's software typically having limits on the length of directory paths. There is a long debate on this topic on GitHub.

Simple Fix

To get around this you can set your node_modules as a hidden folder by right clicking it, selecting properties and checking the Hidden box. Hidden folders are not detected by Visual Studio and this simple fix made Visual Studio run just fine.

One Last Thing...

If you have a question or see a mistake, please comment below.

If you found this post helpful, please share it with others. It's the best thanks I can ask for & it gives me momentum to keep writing!

Matt Ferderer
Software Developer focused on making great user experiences. I enjoy learning, sharing & helping others make amazing things.
Let's Connect