npm包错咋弄搞了两个晚上了都没有搞定,不知道怎么回事

C:\Users\28478>npm i -g react-native
npm ERR! code ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! errno ENOTFOUND
npm ERR! network request to http://registry.npm.taobao.or/react-native failed, reason: getaddrinfo ENOTFOUND registry.npm.taobao.or
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\28478\AppData\Local\npm-cache_logs\2022-04-27T14_53_55_847Z-debug-0.log

C:\Users\28478>

原先的淘宝源失效了,换了新的

npm config set registry https://registry.npmmirror.com/

1、删除整个node-module重下
2、查看npm版本或者node版本,有的版本过高是不行的
3、看下这个命令是否错误
4、切换为国内的镜像地址下载看看

删除node-module 文件
重新npm install npm