使用gh-pages在github上部署create-react-app时出现问题

时间:2019-08-05 16:40:17

标签: reactjs npm github-pages create-react-app

使用create-react-app在github上部署使用gh-pages创建的应用程序时,我遇到错误。

"file" argument must be a non-empty string
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-text-echo@0.1.0 deploy: `gh-pages -d build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-text-echo@0.1.0 deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

我已经推荐了this linkthis one

有人可以帮我弄清楚到底是什么问题吗?

我的github项目链接是-https://github.com/aagjalpankaj/react-text-echo

我的package.json文件是-https://github.com/aagjalpankaj/react-text-echo/blob/master/package.json

1 个答案:

答案 0 :(得分:1)

It's a bug in gh-pages 2.1.x降级gh-pages到版本2.0

npm install gh-pages@2.0 --dev.