reactjs - 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"
}
}
解决方案
推荐阅读
- intellij-idea - 如何从自定义范围中排除 Scratches 目录
- spring-boot - Camel 和 SpringBoot 的常用 ThreadPool 配置
- javascript - 如何使用三元运算符退出函数
- python - 从 .tfrecord 到 tf.data.Dataset 到 tf.keras.model.fit
- python - 如何创建具有重复颜色图案的绘图?
- sql-server - T-SQL 科学计数法字段转换
- excel-formula - 计算达到每股目标价格所需购买的股票数量
- mysql - 无法按元值排序帖子
- bootstrap-4 - 带有动态高度标题图像的 bootstrap 4 固定高度卡
- r - 在csv电子表格中用NA替换负值