create-react-app: "gh-pages -d build" failed

Is this a bug report?

YES.

Can you also reproduce the problem with npm 4.x?

YES.

Which terms did you search for in User Guide?

GitHub Pages.

Environment

  1. node -v: 6.x/8.x (I have tested two versions)
  2. npm -v: 4.x/5.x (I have tested two versions)
  3. npm ls react-scripts (if you haven’t ejected): react-script@1.0.13

Then, specify:

  1. Operating system: Windows_NT 10.0.14393

Steps to Reproduce

1、 git clone https://github.com/jerofree/ReactMusic.git 2、open node.js CLI
3、type command “cd ReactMusic”, then “npm run deploy” (package.json has been prepared)

Expected Behavior

the project could be deployed to the github pages correctly.

Actual Behavior

“gh-pages -d build” can not work nz 3ea8 uuf7yx r d1r3

Reproducible Demo

just follow the “Steps to Reproduce” , easily to reproduce. (be sure to use window 10 operating system)

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (6 by maintainers)

Most upvoted comments

Are you sure your remote is correct?

You can try to reset it:

$ git remote remove origin
$ git remote add origin https://github.com/jerofree/ReactMusic.git
$ git push -u origin master

Then try again.

few seconds later i saw in package.json “homepage” : “mydomain/react-test”, Adding “/build” at the end i solve my problem

Thanks 💯

@jerofree how do you solved that? i’m stuck at this part after npm run build.

I have solved this. It works now. but still have some problems. https://jerofree.github.io/ReactMusic/

some content could not show.

Do you have git installed?