-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Win "file path too long" error #489
Comments
Windows explorer doesn't support long file paths. Run |
Thanks @kevva But there were other |
@tomByrer - did you see the closed issues sindresorhus/gulp-imagemin#56 and gulpjs/gulp#630 (comment) which are related to "file path too long"? trash seems to suffer from the same problem of filenames being too long for the OS (Windows) to cope with |
Thanks for the links @u01jmg3! Yep it was gulp-imagemin. Yep tried sindresorhus's suggestion to install Ubuntu a month ago, but they have problems fixing bugs also. Nope, don't care enough to do extra work to shoehorn something that was supposed to save time. |
Yup, trash doesn't support long paths: sindresorhus/trash#16 You can use the rimraf CLI though: https://github.com/isaacs/rimraf But this is not an issue with WSK. It's an issue with Windows. |
Sorry, but incompatibility with a popular OS IS a bug. Granted, 95% of the dev shops I've been in here in Denver are 100% Macs (Craftsy, Inspirato, Pivotal Labs, Rally Software, Cloud Elements, etc). However, I'm sure you'd want devs world wide to consume this, not just privileged rich devs ;) |
rimraf seems to do a decent job of deleting folders that Windows cannot handle deleting Seem to get this error (although everything in the folder is removed) which I know is one for raising with isaacs if at all
|
Agreed, it's just not our bug. npm is working on fixing it, but won't be in the short run. There's nothing we can do about this. Use something broken and don't be surprised when you get a broken experience. IE6 comes to mind.
Ubuntu is free. Windows is not. There are lots of third-party tools available that let you deal with long paths. |
Well, ye olde NPM won't work on Windows because too many nested deps bug came up for me.
I had a bunch of errors after
install
, but I thought they might be because I was using a Node fork, JXCore. But I found node-sass 1.0.1 is having build issues also (may or may not be related). Since I didn't save my error log (which was long) I was going tonpm install
with a fresh install of stable Node 32bit for Windows. But deleting the entire/node_modules
I got this error:My root filepath is only 31 characters long; I made parent folder name short just to avoid this bug.
Honestly, I'm reconsidering if NPM is ready for prime-time tooling, at least in WIndows. Between this multi-year bug & versioning of the dep chain causes alot of frustration.
The text was updated successfully, but these errors were encountered: