我正在尝试运行React Stock图表的示例代码
https://github.com/rrag/react-stockcharts
示例在
中https://github.com/rrag/react-stockcharts-examples2
我是npm和js的新手,我想运行一些例子来学习。 我得到了正确的npm版本和节点js版本,但我仍然遇到了一些问题。
npm ERR! peerinvalid The package eslint-plugin-jsx-a11y@5.0.1 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer eslint-config-react-app@1.0.5 wants eslint-plugin-jsx-a11y@^5.0.3
我查看了package-lock.json并将eslint-plugin-jsx-a11y@5.0.1更改为5.0.3但仍然没有运气。
此外,这就是package.json的样子。
{
"name": "react-stockcharts-example",
"description": "",
"version": "0.0.24",
"dependencies": {
"d3-dsv": "1.0.5",
"d3-format": "^1.2.0",
"d3-scale": "1.0.6",
"d3-time-format": "2.0.5",
"prop-types": "15.5.10",
"react": "15.5.3",
"react-dom": "15.5.3",
"react-stockcharts": "0.7.0-beta.12"
},
"devDependencies": {
"react-scripts": "1.0.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}
感谢您的帮助。