-1

I got this error when I was running the npm run deploy command in the terminal, how can I resolve this error?

Error image

halfer
  • 19,824
  • 17
  • 99
  • 186
yogesh kumar
  • 103
  • 10

2 Answers2

0

(Posted solution on behalf of the question author, to move it to the answer section.)

  1. Run Git Bash as administrator (right-clicking the app shortcut will show the option to Run as Administrator )
  2. 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