我很反应原生。我想绘制一张图表,因为我遇到了this库。但不幸的是,从npm安装库时
npm install react-native-svg --save
我收到了错误。
npm WARN peerDependencies The peer dependency react-native@^0.24.0 included from react-native-svg will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm ERR! Darwin 15.2.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "react-native-svg" "--save"
npm ERR! node v4.3.1
npm ERR! npm v2.14.12
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package react-native@0.25.1 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer react-native-svg@1.2.6 wants react-native@^0.24.0
npm ERR! Please include the following file with any support request:
npm ERR! /Users/subodh/ReactNative/SVGDemo/npm-debug.log
那里有人可以提供帮助吗? Package.json内容:
{
"name": "SVGDemo",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start"
},
"dependencies": {
"react": "^0.14.8",
"react-native": "^0.25.1"
}
}