I got this error when I was running the npm run deploy
command in the terminal, how can I resolve this error?
Asked
Active
Viewed 341 times
-1

halfer
- 19,824
- 17
- 99
- 186

yogesh kumar
- 103
- 10
-
I think this link will help you: https://stackoverflow.com/questions/22575662/filename-too-long-in-git-for-windows – davood Sandoghsaz Nov 25 '21 at 16:23
2 Answers
0
(Posted solution on behalf of the question author, to move it to the answer section.)
- Run Git Bash as administrator (right-clicking the app shortcut will show the option to Run as Administrator )
- Run the following command:
git config --system core.longpaths true
Note: if step 2 does not work or gives any error, you can also try running this command: git config --global core.longpaths true
This worked for me.

halfer
- 19,824
- 17
- 99
- 186
-1
I think this link will help you:
Filename too long in Git for Windows
You must run this command in your terminal:
git config --system core.longpaths true

davood Sandoghsaz
- 674
- 1
- 4
- 13
-
Wow, this works thank you so much, initially i didn't believe that this will work but this resolved the problem thanks again – yogesh kumar Nov 25 '21 at 16:38
-
If you find an exact duplicate, it is best just to flag the question as a dup, rather than answering. – halfer Nov 25 '21 at 21:33