尝试安装蓝图: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,那么这里发生了什么?
包.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"
}
}