I am used
to VS so I tried opening a project that I scaffold using yeoman. But to my surprise
VS just crashes when I open the project as a website.
I had a
feeling it has something to do with the node_modules folder, to test I deleted
it and VS loaded the website for editing. The next thing was: how do I load the
website project without that node_modules folder?
The only
thing I could find that works is to set the “Hidden” attribute for the node_modules
folder.
- Open Windows Explorer.
- Right click the node_modules folder which you want to exclude, and then select “Properties”.
- Check the “Hidden” attribute.
You can now open the website in VS and it will not load the node_modules folder. Problem solved for now.