redux-thunk根本没有安装

时间:2019-10-10 10:34:53

标签: reactjs redux react-redux redux-thunk

以前,运行过的yarn在我的终端中添加了redux-thunk,但在package.json中什么也没有发生。没有添加其他依赖项。

我已经尝试用--save标志和--force标志运行yarn add redux-thunk(我确保首先备份它)

  "name": "vrs",
  "version": "2.6.0",
  "description": "Vehicle Reservation System",
  "author": {
    "name": " ",
    "url": "",
    "github": " ",
    "twitter": " "
  },
  "homepage": ".",
  "copyright": " ",
  "license": "https://coreui.io/pro/license/",
  "private": true,
  "dependencies": {
    "@coreui/coreui-plugin-chartjs-custom-tooltips": "^1.3.1",
    "@coreui/coreui-pro": "^2.1.14",
    "@coreui/icons": "0.3.0",
    "@coreui/react": "^2.5.1",
    "@fortawesome/fontawesome-free": "^5.11.2",
    "axios": "^0.19.0",
    "bootstrap": "^4.3.1",
    "chart.js": "^2.8.0",
    "classnames": "^2.2.6",
    "codemirror": "^5.47.0",
    "core-js": "^3.1.4",
    "enzyme": "^3.10.0",
    "enzyme-adapter-react-16": "^1.14.0",
    "flag-icon-css": "^3.3.0",
    "font-awesome": "^4.7.0",
    "formik": "^1.5.1",
    "node-sass": "^4.12.0",
    "prop-types": "^15.7.2",
    "react": "^16.8.6",
    "react-app-polyfill": "^1.0.1",
    "react-big-calendar": "^0.21.0",
    "react-bootstrap-table": "4.3.1",
    "react-chartjs-2": "^2.7.6",
    "react-codemirror2": "^6.0.0",
    "react-dates": "^20.2.3",
    "react-dom": "^16.8.6",
    "react-google-maps": "9.4.5",
    "react-grid-layout": "^0.16.6",
    "react-ladda": "6.0.0",
    "react-quill": "1.3.3",
    "react-redux": "^7.1.0",
    "react-router-config": "^5.0.1",
    "react-router-dom": "^5.0.1",
    "react-select": "^1.3.0",
    "react-test-renderer": "^16.8.6",
    "react-text-mask-hoc": "^0.11.0",
    "react-toastify": "^5.2.1",
    "reactstrap": "^8.0.0",
    "redux": "^4.0.4",
    "simple-line-icons": "^2.4.1",
    "spinkit": "1.2.5",
    "yup": "^0.27.0"
  },
  "devDependencies": {
    "mutationobserver-shim": "^0.3.3",
    "react-scripts": "^3.0.1"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "test:cov": "npm test -- --coverage --watchAll=false",
    "test:debug": "react-scripts --inspect-brk test --runInBand",
    "eject": "react-scripts eject"
  },
  "bugs": {
    "url": "https://github.com/coreui/coreui-pro-react-admin-template-starter/issues"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 10",
    "not op_mini all"
  ],
  "jest": {
    "collectCoverageFrom": [
      "src/**/*.{js,jsx}",
      "!**/*index.js",
      "!src/serviceWorker.js",
      "!src/polyfill.js"
    ]
  },
  "engines": {
    "node": ">=8.10",
    "npm": ">=6"
  },
  "proxy": "http://localhost:5000"
}

终端输出成功保存锁定文件。成功保存了1个新的依赖项信息直接依赖项redux-thunk@2.3.0所有依赖项redux-thunk@2.3.0

0 个答案:

没有答案