未满足的对等依赖 react@16.0.0 蓝图

UNMET PEER DEPENDENCY react@16.0.0 Blueprint

正在尝试安装蓝图:http://blueprintjs.com/docs/#blueprint.npm-installation

已尝试手动安装。已尝试按照步骤 2 中所述手动安装依赖项,但我不断收到:

UNMET PEER DEPENDENCY react@16.0.0

这没有意义。我的 package.json 包含 "react": "^16.0.0",我今天使用 create-react-app 安装了 react,这是怎么回事?

package.json:

{
  "name": "reactdemo",
  "version": "0.1.0",
  "private": true,
  "devDependencies": {
    "react-scripts": "1.0.14"
  },
  "dependencies": {
    "@blueprintjs/core": "^1.32.0",
    "react": "^16.0.0",
     "react-addons-css-transition-group": "^15.6.2",
    "react-dom": "^16.0.0",
    "react-transition-group": "^1.2.1"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
  }
}

引用 BluePrint 自己的仓库中的 @adidahiya

If you're using React 16, we're currently in an awkward in-between state where we need react-addons-css-transition group for pre-16 support, hence the peer dep warnings. They should be safe to ignore for now. Follow #866 for more updates.

参见original issue ticket here, and the issue to follow here

希望对您有所帮助。