一行命令 查较为全面的各中版本信息
yarn react-native info
$ /Users/dl/Desktop/gitFiles/StartPineapple/node_modules/.bin/react-native info
info Fetching system and libraries information…
System:
OS: macOS 10.15.5
CPU: (4) x64 Intel® Core™ i5-7360U CPU @ 2.30GHz
Memory: 231.43 MB / 8.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 14.5.0 - /var/folders/sf/kwbyjr2s6wq9t8709gzdj3xr0000gp/T/yarn–1596708310082-0.44213988172946994/node
Yarn: 1.22.4 - /var/folders/sf/kwbyjr2s6wq9t8709gzdj3xr0000gp/T/yarn–1596708310082-0.44213988172946994/yarn
npm: 6.14.5 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
Android SDK:
API Levels: 28, 30
Build Tools: 28.0.3, 29.0.2, 30.0.0
System Images: android-28 | Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 4.0 AI-193.6911.18.40.6514223
Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_251 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: 0.63.1 => 0.63.1
npmGlobalPackages:
react-native: Not Found
由于以上并不全,还是单个挨个都查一遍
语言
node
node -v
v14.5.0
react-native
//npm info react-native
npm info react-native -version
6.14.5
JDK
javac -version
javac 1.8.0_251
包管理
npm
version
npm -v
6.14.5
源
// npm config list
npm config get registry
https://registry.npm.taobao.org/
core-js版本
npm info core-js
core-js@3.6.5
cocoapods (iOS)
version
pod --version
1.9.3
源
pod repo
AliBCSpecs
- Type: git (master)
- URL: http://repo.baichuan-ios.taobao.com/baichuanSDK/AliBCSpecs.git
- Path: /Users/dl/.cocoapods/repos/AliBCSpecs
aliyun
- Type: git (master)
- URL: https://github.com/aliyun/aliyun-specs.git
- Path: /Users/dl/.cocoapods/repos/aliyun
cocoapods
- Type: git (master)
- URL: https://github.com/CocoaPods/Specs.git
- Path: /Users/dl/.cocoapods/repos/cocoapods
edu-git-cocoapods-specs
- Type: git (master)
- URL: https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git
- Path: /Users/dl/.cocoapods/repos/edu-git-cocoapods-specs
ibireme
- Type: git (master)
- URL: https://github.com/ibireme/YYWebImage.git
- Path: /Users/dl/.cocoapods/repos/ibireme
trunk
- Type: CDN
- URL: https://cdn.cocoapods.org/
- Path: /Users/dl/.cocoapods/repos/trunk
说明: 以上这些(库说明文件)repo文件 地址/Users/dl/.cocoapods/repos/,eg: AliBCSpecs存着 百川团队制作的私有库的说明文件
gradle(Android)
来自官网原文,统一改为以下配置吧
也可以尝试阿里云提供的maven 镜像,将android/build.gradle中的jcenter()和 google()
分别替换为
maven { url ‘https://maven.aliyun.com/repository/jcenter’ }和
maven { url ‘https://maven.aliyun.com/repository/google’ }(注意有多处需要替换)。
项目根目录下:
cd android
./gradlew --v
展示信息如下:
Gradle 6.2
Build time: 2020-02-17 08:32:01 UTC
Revision: 61d3320259a1a0d31519bf208eb13741679a742f
Kotlin: 1.3.61
Groovy: 2.5.8
Ant: Apache Ant™ version 1.10.7 compiled on September 1 2019
JVM: 9.0.4 (Oracle Corporation 9.0.4+11)
OS: Mac OS X 10.15.5 x86_64
IDE
Xcode
Version 11.3.1 (11C504)
Android Studio
Android Studio 4.0
Build #AI-193.6911.18.40.6514223, built on May 20, 2020
Runtime version: 1.8.0_242-release-1644-b3-6222593 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.5