不能运行npx react-native init MyApp



' $ npx react-native init BMO -version 0.65输入图片描述

npm WARN config global--global,--local已弃用。用--location=global代替。

######                ######
###     ####        ####     ###
##          ###    ###          ##
##             ####             ##
##             ####             ##
##           ##    ##           ##
##         ###      ###         ##
##  ########################  ##
######    ###            ###    ######
###     ##    ##              ##    ##     ###

## ### #### ### ##

#### ######## ####

### ########## ###

#### ######## ####

## ### #### ### ##

###     ##    ##              ##    ##     ###
######    ###            ###    ######
##  ########################  ##
##         ###      ###         ##
##           ##    ##           ##
##             ####             ##
##             ####             ##
##          ###    ###          ##
###     ####        ####     ###
######                ######

Welcome to React Native!
Learn once, write anywhere

8下载模板错误:命令失败:npm install——save——save-exact react-native@latestnpm WARN config global--global--local已弃用。使用--location=global代替。npm WARN erresolve覆盖对等依赖npm WARN,同时解析:react-shallow-renderer@16.14.1npm警告发现:react@18.0.0npm警告node_modules/reactnpm WARN peer react@"18.0.0"从react-native@0.69.0npm警告node_modules/react-nativenpm WARN react-native@" 0.6.9 "从根项目(@react-native-community/cli)npm WARN 1 more (use-sync-external-store)npm警告npm WARN无法解析依赖项:npm WARN peer react@"^16.0.0 || ^17.0.0"从react-shallow-renderer@16.14.1npm警告node_modules/react-shallow-renderernpm WARN react-shallow-renderer@"16.14.1"从react-native@0.69.0npm警告node_modules/react-nativenpm警告npm WARN同级依赖冲突:react@17.0.2npm警告node_modules/reactnpm WARN peer react@"^16.0.0 || ^17.0.0"从react-shallow-renderer@16.14.1npm警告node_modules/react-shallow-renderernpm WARN react-shallow-renderer@"16.14.1"从react-native@0.69.0npm警告node_modules/react-nativenpm WARN已弃用source-map-url@0.4.1:参见https://github.com/lydell/source-map-url#deprecatednpm WARN已弃用urix@0.1.0:请参阅https://github.com/lydell/urix#deprecatednpm WARN已弃用source-map-resolve@0.5.3:参见https://github.com/lydell/source-map-resolve#deprecatednpm WARN已弃用resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecatednpm WARN已弃用uglify-es@3.3.9:从v3.13.0开始,对ECMAScript的支持被uglify-js取代npm犯错!代码E404npm犯错!404 Not Found - GET https://skimdb.npmjs.com/registry/update-browserslist-db/-/update-browserslist-db-1.0.4.tgz - not_foundnpm犯错!404npm犯错!404 'update-browserslist-db@https://skimdb.npmjs.com/registry/update-browserslist-db/-/update-browserslist-db-1.0.4.tgz'不在此注册表中。npm犯错!404npm犯错!请注意,您也可以从npm犯错!404 tarball,文件夹,HTTP url,或者git url.

npm犯错!这次运行的完整日志可以在下面找到:npm犯错!C:UsersAdminAppDataLocal npm-cache_logs 2022 - 06 - 24 - t10_28_55_204z调试日志

0. -

你在npx reac-native中有一个错别字,应该是npx react-native