Skip to content

Commit 7f5ec49

Browse files
Daniel WangTimer
Daniel Wang
authored andcommitted
Add additional troubleshooting for Github Pages (facebook#5169)
* Add additional troubleshooting for Github Pages * Update README.md
1 parent 401ff54 commit 7f5ec49

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/react-scripts/template/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -2222,6 +2222,14 @@ If, when deploying, you get `/dev/tty: No such a device or address` or a similar
22222222
2. `git remote set-url origin https://<user>:<token>@github.com/<user>/<repo>` .
22232223
3. Try `npm run deploy` again
22242224
2225+
##### "Cannot read property 'email' of null"
2226+
2227+
If, when deploying, you get `Cannot read property 'email' of null`, try the following:
2228+
2229+
1. `git config --global user.name '<your_name>'`
2230+
2. `git config --global user.email '<your_email>'`
2231+
3. Try `npm run deploy` again
2232+
22252233
### [Heroku](https://www.heroku.com/)
22262234
22272235
Use the [Heroku Buildpack for Create React App](https://github.com/mars/create-react-app-buildpack).<br>

0 commit comments

Comments
 (0)