我正在尝试将 Angular PWA 部署到 gh 页面并在部署时收到此错误:git-upload-pack '.': git-upload-pack: command not found fatal: could not read from remote repository。
请确保您具有正确的访问权限并且存储库存在。
我的脚本是:
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"start-pwa": "ng build --prod && http-server -p 8080 -c-1 dist/billFold-client",
"predeploy": "ng build --prod --base-href=/billFold-client/",
"deploy": "npx gh-pages -d dist/billFold-client"
},
"private": true,
"homepage": "https://gcy2312.github.io/billFold",
有没有人能够解决这个问题?我试过改变我的脚本,改用 angular-cli-ghpages ......总是同样的错误......