question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"gh-pages -d build" failed

See original GitHub issue

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)

Issue Analytics

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

github_iconTop GitHub Comments

7reactions
Timercommented, Sep 29, 2017

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.

1reaction
RGuerreroCcommented, Oct 6, 2017

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

Thanks 💯

Read more comments on GitHub >

github_iconTop Results From Across the Web

gh-pages d- build: failed at deploy script - Stack Overflow
1 Answer 1 · Create a new branch gh-pages from the branch which has the project version that you want to publish. ·...
Read more >
How to Deploy React App to GitHub Pages - Ibaslogic
You can deploy your app to GitHub pages in three simple steps. Move your files to the local repository, then to a remote...
Read more >
gh-pages - npm
Calling this function will create a temporary clone of the current repository, create a gh-pages branch if one doesn't already exist, ...
Read more >
Deployment | Create React App
npm run build creates a build directory with a production build of your app. ... + "deploy": "gh-pages -b master -d build",
Read more >
How to Deploy a Routed React App to GitHub Pages
"scripts": { "start": "react-scripts start", "predeploy": "npm run build", <----------- #1 "deploy": "gh-pages -d build", <---------- #2 "build" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found