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.

Matt Ferderer

Full Stack Software Developer focused on JavaScript and C#. Love to share & help others make amazing things. Have a project you need help on? Let's talk!