对本地世博会用户的反应!
在expo init上使用react导航(都是空白和选项卡),我遇到了错误:
npm ERR! 404 '@react-navigation/native@3.1.4' is not in the npm registry.我已经开发了几个月的反应本地使用博览会,并有很大的成功学习和解决错误的过程中!
我休假了一段时间,回来开始一个新的项目,然后撞上了一道墙--导航@^3.0.0--我尝试了很多解决方案和不工作的方法。
我正在使用expo和npm启动一个新项目,选项卡和空白模板都有反应导航npm安装问题:
expo init
? Choose a template: expo-template-tabs
? Choose which workflow to use: managed
✔ Please enter a few initial configuration values.
Read more: https://docs.expo.io/versions/latest/workflow/configuration · 100% completed
? Yarn v1.13.0 found. Use Yarn to install dependencies? No
[08:18:30] Extracting project files...
[08:18:31] Customizing project...
[08:18:31] Initialized a git repository.
[08:18:31] Installing dependencies...
npm WARN deprecated kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@react-navigation%2fnative - Not Found
npm ERR! 404
npm ERR! 404 '@react-navigation/native@3.1.4' is not in the npm registry.
npm ERR! 404 Your package name is not valid, because
npm ERR! 404 1. name can only contain URL-friendly characters
npm ERR! 404 It was specified as a dependency of 'react-navigation'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ddcjosiahl/.npm/_logs/2019-02-08T13_18_47_333Z-debug.log
[08:18:47] Process exited with non-zero code: 1
[08:18:47] Set EXPO_DEBUG=true in your env to view the stack trace.我正在尝试没有运气的选择:
- **Note:** I have spent all day yesterday trying to get new projects to work. I did manage to get passed it by installing different versions of react-native, and cannot replicate...which then caused a mismatch of versions and app wouldn't load:\*
*RNGestureHandlerButton:* 在这里输入图像描述
为什么反应-导航@^3.0.0需要本机@3.1.4和如何解决?
谢谢!
发布于 2019-02-09 11:07:26
在从世博v31升级到v32时,我也遇到了同样的问题。在没有运气的情况下尝试了你所做的一切。最后,用npm install https://github.com/react-navigation/react-navigation-native从github安装解决了这个问题。然后,我分别安装了react导航包,然后为我的项目安装了所有其他必需的模块。
发布于 2019-02-10 13:33:26
通过编辑根.npmrc文件确定我有: registry=https://registry.npmjs.org/来解决
我的问题与拥有"_auth=“有关。
npm和纱线现在都与反应导航和404我得到的工作。谢谢穆尼什金和阿廷·辛格
发布于 2019-02-08 15:11:38
我不清楚你到底出了什么问题。因此,我假设您不能使用React导航与世博。
试着在整个过程中使用纱线而不是npm。
使用纱线时,博览会要求作出一个新的项目,然后安装反应-导航使用-
加纱反应导航
我昨天使用了导航,它对我来说非常有效。
https://stackoverflow.com/questions/54593740
复制相似问题