无法将npm / yarn软件包更新为最新版本

时间:2020-02-27 11:43:55

标签: npm react-redux yarnpkg

我正在尝试使用yarn安装最新版本的react-redux(7.2.0) enter image description here

但是yarn显示的列表不包括最新版本:

enter image description here

与npm相同:

enter image description here enter image description here

npm view react-redux

enter image description here

我的package.json:

{
    "name": "client",
    "version": "0.1.0",
    "private": true,
    "dependencies": {
        "css-loader": "^2.1.1",
        "html-webpack-plugin": "^3.2.0",
        "lodash": "^4.17.11",
        "node-sass": "^4.11.0",
        "react": "^16.8.6",
        "react-dom": "^16.8.6",
        "react-hot-loader": "^4.8.4",
        "react-router-dom": "^5.0.0",
        "react-scripts": "2.1.8",
        "redux": "^4.0.1",
        "redux-immutable-state-invariant": "^2.1.0",
        "redux-saga": "^1.0.2",
        "sass-loader": "^7.1.0",
        "style-loader": "^0.23.1",
        "webpack-bundle-analyzer": "^3.3.2",
        "webpack-cli": "^3.3.0",
        "webpack-hot-middleware": "^2.24.3"
    },
    "scripts": {
        "start": "react-scripts start",
        "build": "react-scripts build",
        "test": "react-scripts test",
        "eject": "react-scripts eject"
    },
    "eslintConfig": {
        "extends": "react-app"
    },
    "browserslist": [ ">0.2%", "not dead", "not ie <= 11", "not op_mini all" ]
}

有人知道我该如何安装?

0 个答案:

没有答案