Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't delete because folder path is too long. #209

Closed
msguerra74 opened this issue May 1, 2014 · 4 comments
Closed

Can't delete because folder path is too long. #209

msguerra74 opened this issue May 1, 2014 · 4 comments

Comments

@msguerra74
Copy link

I don't know if it's just me or not, but I'm having a really hard time deleting the grunt-contrib-imagemin folder from inside node_modules. I'm running Windows 8.1 (64-bit) and it tells me the path is too long. I've looked at the folder structure and it gets really nested down so deeply that I have to really jump through hoops to finally get it all deleted. This just started happening sometime in the last 2 or 3 updates, so I was wondering if anyone else was having this issue? Thanks

@jamesplease
Copy link
Member

This is a known issue with npm, not this plugin. You should look for help there!

@oTnarP
Copy link

oTnarP commented Jul 15, 2015

anyone used “Long Path Tool”
This tool is great
Thanks

@aamarks
Copy link

aamarks commented Aug 23, 2016

I've just figured this out and don't know a lot about this, but the newest version(s) of npm handles installation by flattening the directory structure of dependencies and thus installs grunt-contrib-imagemin without exceeding windows file length limits. To "fix" old installs first uninstall problematic plugins such as this one and grunt-contrib-uglify, and then reinstall. Simply updating plugins won't flatten. (My current installed versions are Nodejs v.4.5. which includes npm 2.15. which I then upgraded to npm 3.10.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@msguerra74 @jamesplease @oTnarP @aamarks and others