gh-pages -d build gives Error “file” argument must be a non-empty string

后端 未结 2 887
一向
一向 2021-01-19 03:23

I included all the steps for deploying my create react app on github. snippet of my package.json

\"scripts\": {
    \"start\": \"node scripts/start.js\",
            


        
相关标签:
2条回答
  • 2021-01-19 04:03

    I think the command is like this.

    gatsby -d public -b master
    

    Where public is the folder you want to push and master is the branch you want to push to. Please run your build before this

    0 讨论(0)
  • 2021-01-19 04:20

    Got the same issue; this answer solved my problem: https://stackoverflow.com/a/57315930/11879312

    "Seems like a bug in gh-pages 2.1. I solved mine by downgrading gh-pages to version 2.0: yarn add gh-pages@2.0 -D or npm install gh-pages@2.0 --dev."

    0 讨论(0)
提交回复
热议问题