Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Nuget Package does not install on Windows. File path too long. #1

Open
je-die opened this issue Jul 20, 2017 · 3 comments
Open

Nuget Package does not install on Windows. File path too long. #1

je-die opened this issue Jul 20, 2017 · 3 comments

Comments

@je-die
Copy link

je-die commented Jul 20, 2017

I am trying to use your Nodejs.redist.x64 8.2.0 nuget package on Nuget.org. When I try to install the package, I get this error: "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters." It seems to be caused by the nested node_modules folders under the pacote module.

Is there a way you could flatten the npm node modules in the nuget?

@mihasic
Copy link
Owner

mihasic commented Jul 21, 2017

Most likely that's related to nuget cache location (NuGet/Home#3324).
You can check those using: nuget locals all -list

As a workaround when installing locally - you can avoid cache by using:
nuget install Nodejs.Redist.x64 -directdownload (or dotnet restore --no-cache)

Speaking of repackaging: the risk of breaking something is too high, I've tried to do it once, but npm failed while resolving one of the dependent packages.

@mihasic
Copy link
Owner

mihasic commented Aug 11, 2017

some 'global' workaround: NuGet/Home#1727

@mihasic
Copy link
Owner

mihasic commented May 30, 2018

Just noticed - Node 10.3.0 with Npm 6.1.0 has flattened dependencies. So the longest path is about 100 characters shorter.

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

No branches or pull requests

2 participants