winbench / bench

Portable Software Environment for Windows
https://winbench.org
MIT License
20 stars 3 forks source link

Failed to install Node.js 8.11.x because of long paths #122

Closed mastersign closed 6 years ago

mastersign commented 6 years ago

When installing Node.JS 8.11.x the process failes with a path too long exception.

mastersign commented 6 years ago

Node.JS comes with npm and its node_modules hierarchy, which can be very deep. Installing or removing Node.JS with deep nested directories requires handling very long paths (> 240 chars). This kind of long paths are traditionally bad or not supported in the Windows shell. Since .NET 4.6.2 the System.IO namespace supports long paths by prefixing them with \\?\.

Therefore, Bench should switch to .NET 4.6.2 as a minimum requirement. Implementing workarounds is too brittle.