News for hackers. Stuff that matters.
Re:Huge no. of files for Angular 2 by rplnt on Tuesday August 02, 2016 @07:41AM (#12209173)
This sucks so hard. It's also quite easy to hit path length limits for certain operations (on windows) when you have this mess there.
Re:Huge no. of files for Angular 2 by dgorges on Tuesday August 02, 2016 @07:55AM (#12209238)
Totally. We just ran into this issue. Running npm install inside a linux vm resulted in an endless loop, because the nfs mapping created path names that exceeded the length limit.
Re:Huge no. of files for Angular 2 by ishener on Tuesday August 02, 2016 @07:59AM (#12209257)
it's like an entire eco-system is fundamentally broken
Re:Huge no. of files for Angular 2 by fahrradflucht on Tuesday August 02, 2016 @08:46AM (#12209510)
Maybe, but it's not like there is no way of solving that issue.

It's just that this problem can't be solved entirely by npm. Node has to make changes to it's module loader as well.

Re:Huge no. of files for Angular 2 by throwanem on Tuesday August 02, 2016 @10:33AM (#12210228)
NPM 3 tries, not entirely without success, to flatten the tree under node_modules/; I've had good results using it to resolve the kind of path length issues (in this case, with NTFS directories mounted in a VM) that you describe. Might be worth a look in your case as well.
Re:Huge no. of files for Angular 2 by SquareWheel on Tuesday August 02, 2016 @09:28AM (#12209751)
This used to be the case. In npm3 and beyond it installs dependencies in a flat way, which seems to have solved the Windows file length limit problem.