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

2 Answers 2

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.

0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.