Docker Community Forums

Share and learn in the Docker community.

In windows, when npm install length restrictions


(Ab0029) #1

When I try to install a certain npm package with a lot of dependencies, the paths start to exceed the limit I still have due the shared folder being where it is.
VirtualBox on windows cannot generate paths longer than ~260 characters on windows.
How can i do?


(Thegleep) #2

There is a node package that collapses the folder structure. I can’t remember the name of it, and I haven’t tried it for my projects, yet. But it’s out there and at least this gives you a place to start.


(Sundry) #3

It’s called flatten-packages: https://www.npmjs.com/package/flatten-packages


(Stevengross) #4

You can find this common problem in windows, for resolving length issue try LongPathTool program.