react-native - 如何创建具有特定版本的 react-native 项目
问题描述
由于 AWS amplify-js 身份验证的持续错误,我正在尝试创建一个具有特定版本的 react-native 项目,此处提到https://github.com/aws-amplify/amplify-js/issues/6845
我运行了以下命令“npx react-native init RNAmplify --version 0.65.0”
并将其作为我的输出
###### ######
### #### #### ###
## ### ### ##
## #### ##
## #### ##
## ## ## ##
## ### ### ##
## ######################## ##
###### ### ### ######
### ## ## ## ## ###
### ## ### #### ### ## ###
## #### ######## #### ##
## ### ########## ### ##
## #### ######## #### ##
### ## ### #### ### ## ###
### ## ## ## ## ###
###### ### ### ######
## ######################## ##
## ### ### ##
## ## ## ##
## #### ##
## #### ##
## ### ### ##
### #### #### ###
###### ######
Welcome to React Native!
Learn once, write anywhere
✔ Downloading template
✔ Copying template
✔ Processing template
✖ Installing dependencies
error Error: Command failed: npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: rnamplify@0.0.1
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR! react@"17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"17.0.1" from react-test-renderer@17.0.1
npm ERR! node_modules/react-test-renderer
npm ERR! dev react-test-renderer@"17.0.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/callumdixon/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/callumdixon/.npm/_logs/2021-10-30T17_25_53_562Z-debug.log
(base) callumdixon@Callums-MacBook-Air Projects %
解决方案
推荐阅读
- c++ - Winsock 在本地 IP 上工作,但不在线
- android - SimpleXML:反序列化项目列表
- java - arraylist.contains() 方法返回 false
- java - 如何在 grpc 中正确设计发布-订阅模式?
- .net-core - 如果 .Net Core 版本支持基于 .Net Framework 创建的 dll
- php - PHP代码将带有附件的html电子邮件发送到Iphone Mail
- powerbi - 如何将我的数据源更改为 Power BI 上的 Sharepoint 数据源
- gradle - Gradle:在调用根任务时排除触发子项目任务
- reactjs - 如何在 React Apollo 的查询变量中传递全局函数值
- aspnetboilerplate - 异常运行测试“无法注册 IUserAppService”