Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Sean Flanagan33,231 Points
Error occurs when trying to delete node_modules
Hi. Does anyone know why this happens? It takes about a minute or so to respond and then I get this message, forcing me to reboot the workspace.
Gabbie Metheny33,709 Points
node_modules folders are usually enormous (dependencies on dependencies on dependencies...), so they always take quite awhile to delete (I usually walk away from my computer while I'm waiting for it to finish deleting). It might just be that with the limitations Treehouse has to place on workspaces, it's too much for the workspace to handle all in one request, so it throws an error.
Do you strictly need to delete the folder, or are you just following along with an example where they show you how you can delete it, then reinstall everything with
npm install? If it's the latter, I'd just move on. Later, when you're working locally with your own terminal and text editor, it probably won't be a problem.