If you're using Git version 2.13 or later, you can enable long path support by running the following command in your Git Bash or command prompt:
git config --global core.longpaths true
If possible, consider restructuring your project to shorten the paths. This could involve moving the project to a directory with a shorter path or renaming folders to have shorter names.
Review your project for any unnecessary files or packages that can be removed or excluded from the build process. This can help reduce the overall path length. If you have a lot of packages or dependencies, consider cleaning up your repository by removing unused packages or using a .gitignore
file to exclude certain files from being tracked.
If the above doesn’t work, open the.git/config
file in your repo and add:
[core]
longpaths = true
Then restart your build or re-clone the repo.
Hope this helps!
Please Let me know if you have any queries.