Please help me in this error, npm run build / deploy error on windows

I got this error when I was running the npm run deploy command in the terminal, please help me to resolve this error.

Error image


  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, find it here

>Solution :

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

Leave a Reply