Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Npm install breaks Windows file system

When I do 'npm install' for a project with many dependencies the file paths for stuff in the node_modules folder become too long for Windows to cope with. I can't move them or delete them cause I keep getting 'too long path names' error. Then I have to manually change the names of the folders so it is shorter. Does anyone know any solutions to this issue?

2 Answers

What version of NPM are you using? It looks like it might be fixed by upgrading to a newer version:


Oh, as I just installed node on my computer, I assumed that the version of npm that comes with it is up to date, but it actually is more than a few releases behind. And yea, updating does fix this problem. Thanks a lot.