首页 > 解决方案 > react如何上传github中的代码?

问题描述

我想要做的是,当我尝试上传我的代码并在 GitHub 中部署 react 应用程序时,我在运行命令时遇到错误npm run deploy。如何修复错误,我附上错误的屏幕截图在此处输入图像描述

任何机构都可以帮助我解决这个问题。我的package.json

{
  "name": "react-hook-form-password-match-check-standard-validation",
  "version": "1.0.0",
  "description": "",
  "keywords": [],
  "main": "src/index.js",
  "homepage": "http://soninamrata.github.io/react-test",
  "dependencies": {
    "react": "16.8.6",
    "react-dom": "16.8.6",
    "react-hook-form": "3.13.1",
    "react-scripts": "3.0.1"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject",
    "predeploy": "npm run build",
    "deploy": "gh-pages -d build"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ],
  "devDependencies": {
    "gh-pages": "^3.2.3"
  }
}

标签: reactjsgithub

解决方案


推荐阅读