Closed neville-lewis closed 1 year ago
Thanks for reporting this issue.
The root cause is coming from the Windows path limitation. We would recommend enabling long paths by running following commands;
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
git config --system core.longpaths true
We will also work on this to give more appropriate error message so that users can fix the issue.
With https://github.com/aws/aws-sam-cli-app-templates/pull/326 in place. This error should not show up anymore.
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Objective:
Create a Nodejs14.x based typescript project.
Issue:
Unable to clone from the
[aws-sam-cli-app-templates](https://github.com/aws/aws-sam-cli-app-templates)
repository on a windows 10 machine.Error:
Steps to reproduce:
Observed result:
Expected result:
Additional environment details
sam --version
: 1.42.0Temporary work around
For any of you facing this issue if you need to make this work
sam init
command and try again.