"gh-pages -d build" failed
See original GitHub issueIs 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
node -v
: 6.x/8.x (I have tested two versions)npm -v
: 4.x/5.x (I have tested two versions)npm ls react-scripts
(if you haven’t ejected): react-script@1.0.13
Then, specify:
- 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
Reproducible Demo
just follow the “Steps to Reproduce” , easily to reproduce. (be sure to use window 10 operating system)
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Are you sure your remote is correct?
You can try to reset it:
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 💯