Closed smitelli closed 9 years ago
Try npm dedupe
and/ or npm v3.x beta (that has integrated dedupe into npm install
).
This will flatten your modules if possible to restrict your problem. See https://docs.npmjs.com/cli/dedupe.
This is more a problem with nodes module handling or even the file system itself than with grunt-sass.
grunt-sass
requiresnode-sass
, which requiressass-graph
, which requiresyargs
, which requirescliui
, which requiresright-align
, which requiresalign-text
, which requireskind-of
, which requiresis-buffer
. Whengrunt-sass
is installed under Vagrant on a Windows host, the innermost path on the host filesystem becomes something akin to:... which, in my case, is 246 characters long. The longest legal pathname on NTFS (ext4, hfs+...) is 255 characters, and this leaves only 9 characters to spare. When it comes time for
is-buffer
to write its package.json, boom, the pathname is too long. npm fails with a cryptic unhelpful error message, and the installation fails.I feel my base path is reasonable. I would not expect the nested dependencies of any project to come anywhere near hitting a hard filesystem limit.