我得到这个项目从回购克隆它使用
git克隆
然后cd到正确的目录
Example
接下来我去安装该项目,这个错误出现了
enter image description here
下面是JSON文件
{
"name": "tryb-prints",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1",
"atomize": "^1.0.26",
"bootstrap": "^4.5.3",
"firebase": "^8.0.2",
"materialize-css": "^1.0.0-rc.2",
"react": "^17.0.1",
"react-bootstrap": "^1.4.0",
"react-dom": "^17.0.1",
"react-router-bootstrap": "^0.25.0",
"react-router-dom": "^5.2.0",
"react-scripts": "3.4.4",
"react-transition-group": "^4.4.1",
"semantic-ui-css": "^2.4.1",
"semantic-ui-react": "^2.0.1",
"shopify-buy": "^2.11.0",
"styletron-engine-atomic": "^1.4.6",
"styletron-react": "^5.2.7"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
任何帮助都会受到欢迎
4条答案
按热度按时间ttp71kqs1#
尝试使用
npm install --legacy-peer-deps
weylhg0b2#
使用
npm install --legacy-peer-deps
允许您忽略这些错误。xn1cxnb43#
因为你的一些内在依赖迫使你做出React^16.8你不能使用17+版本。
降级到主版本17以下的任何版本,您就可以开始了
shyt4zoc4#
这对我很有效