reactjs - 使用`gh-pages`在github上部署`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.
谁能帮我弄清楚到底是什么问题?
我的 github 项目链接是 - https://github.com/aagjalpankaj/react-text-echo
我的 package.json 文件是 - https://github.com/aagjalpankaj/react-text-echo/blob/master/package.json
解决方案
这是gh-pages 2.1.x
降级gh-pages
到版本的错误2.0
:
npm install gh-pages@2.0 --dev.
推荐阅读
- javascript - 将浮点字节转换为字符串
- r - 使用 dplyr::mutate() 获取选定列的滚动平均值
- php - 如何将证书添加到 PhpStorm?
- python - 如何使用熊猫数据框作为其他数据框的条件
- python - Pandas:从交叉表到计数表
- java - RSA 加密在 Java 中导致 IllegalBlockSizeException
- css - 通过单击并拖动来选择 div flex 框
- php - 如何在 macOS Catalina 上的 PHP 7.3 下安装 intl 扩展?
- react-native - 使用 Image.getSize 函数反应本机问题
- graphql - GraphQL Stitching - 为什么子模式中的字段会返回 null?