0

I am trying to deploy a simple react application, it worked the first time, but when i updated my code to github repo and tried to run 'npm run deploy', it failed

Error in deployment

Below is my package.json

Package.json

I am new to react and deploying apps to server

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
AJ555
  • 11
  • 1

2 Answers2

0

First, make sure to use the latest version of npm, as seen here, and in npm/npm issue 7768

Second, looking at the history of your AJ555/react-exp, gh-pages branch, start by reverting the last two commit (to get back to the state where the first deployment succeeded), and check if it is still working.

If it does work, then the issue is in the current last two commits.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

I have this problem as well. What I do is restart my computer and then try run npm run deploy again.

Amos
  • 333
  • 1
  • 3
  • 12