Path too long on Windows 11
Windows 11 上 long path 的功能預設是關閉的,所以如果剛安裝好 Windows 11 如果遇到過長的路徑,會導致收到錯誤訊息。
要解決這問題需要設定 Register
開啟此功能。
使用管理者權限輸入以下指令:
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
Ref: