反应导航NPM安装ERR新鲜世博会初始化@反应导航/原生3.1.4 @

问题描述 投票:1回答:4

反应原住民博览会用户!

我遇到了错误与反应导航(包括空白和制表符)博览会INIT:

npm ERR! 404  '@react-navigation/[email protected]' is not in the npm registry.

我一直在本地做出反应现在使用世博会数月,并获得巨大成功的学习和前进的道路上解决发展中的错误!

我放假了,回来后开始一个新项目,并撞上了一堵墙与react-navigation@^3.0.0 - 我已经尝试了许多解决方案和非工作。

我使用的世博会和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 [email protected]: 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/[email protected]' 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.

我想,没有运气的选项:

  • 清除缓存NPM
  • 试图纱
  • 重新安装博览会CLI
  • NPM安装--save反应导航...的回应本地的,本地的,等 NPM安装--save反应导航NPM ERR!代码E404 NPM ERR! 404未找到:@反应的导航/天然@ 3.1.4 注:我花了昨天一整天试图获得新的项目工作。我还是设法通过安装不同版本的反应本地的获得通过它,而不能复制......然后导致版本不匹配和应用程序将无法加载:*

**** RNGestureHandlerButton:**** enter image description here

为什么react-navigation@^3.0.0需要[email protected]以及如何解决?

谢谢!

reactjs react-native native react-navigation expo
4个回答
0
投票

我有同样的问题,同时从世博V31升级到V32。尝试了所有你没有运气做了什么。最后,从npm install https://github.com/react-navigation/react-navigation-native github上安装解决了这个问题对我来说。我然后分别再装反应的导航包中的所有其他需要的模块为我的项目。


3
投票

通过编辑根.npmrc文件解决确认我有:注册表= https://registry.npmjs.org/

我的问题是关于具有“_auth =”。

无论NPM和纱线现在反应,导航和404的我得到工作。感谢@Munishkin&@Atin辛格


0
投票

我没有明确的想法您的具体问题是什么。所以,我假设你不能够使用阵营导航与世博会。

尝试使用纱线的全过程,而不是NPM。

当世博会要求做一个新的项目,然后安装反应导航使用 - 使用纱

纱线附加反应的导航

我的导航昨天和它完美地为我工作。


0
投票

这是奇怪的,因为我只是尝试,并取得react-navigation有很好的依赖关系。其实,如果你直接在浏览器加载https://registry.npmjs.org/@react-navigation%2fnative URL,你应该看到相应的JSON模式。如果给你404你可能想解决您的DNS解析器。

© www.soinside.com 2019 - 2024. All rights reserved.