question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

expo install rnmapbox/maps NOT FOUND

See original GitHub issue

Describe the bug
A clear and concise description of what the bug is. Installing rnmapbox/maps results in an error even for completely new/fresh expo project.

To Reproduce
Steps to reproduce the behavior.

  1. create a new folder
  2. run: expo init
  3. follow instructions to set up a blank managed workflow
  4. cd {projectname}
  5. npm install mapbox-gl
  6. “mapbox-gl”: “^2.8.0”, is added to package.json
  7. run expo install rnmapbox/maps OR expo install rnmapbox/maps#main OR npm install rnmapbox/maps
  8. “undefined”: “rnmapbox/maps” is added to package.json
  9. Error presents itself

Please include a single standalone React Native component.
Use our BugReportTemplate screens as a starting point. Please simplify the example as much as possible!

If it’s a build/startup issue please include full steps to reproduce from react-native init ...

Example:

expo init 
cd {projectname}
npm install mapbox-gl
expo install  rnmapbox/maps OR expo install  rnmapbox/maps#main OR npm install rnmapbox/maps

Expected behavior
A clear and concise description of what you expected to happen. I expected rnmapbox to install and then by following the following guide be able to run rnmapbox in my expo app outside of the expo go app. https://github.com/rnmapbox/maps/blob/main/plugin/install.md

Installing for example @expo/vector-icons works fine.

Actual behavior
A clear and concise description of what is currently happening.

The command fails with error msg: npm ERR! 404 Not Found - GET https://registry.npmjs.org/@rnmapbox%2Fmaps - Not found npm ERR! 404 npm ERR! 404 ‘@rnmapbox/maps@*’ is not in this registry.

and “undefined”: “rnmapbox/maps” is added to package.json

Versions (please complete the following information):

  • Platform: [e.g. Android, iOS] iOS
  • Platform OS: [e.g. Android 9, iOS 10] 15.3.1
  • Device: [e.g. iPhone6] iphone 11
  • Emulator/ Simulator: [yes/ no] same for both
  • Dev OS: [e.g. OSX 11.0.1, Win10] MacOS Monterey 12.0.1 running m1 silicone
  • @rnmapbox/maps Version [e.g. 10.0.1] tried 8.0.0 and latest
  • Mapbox GL version [e.g. 6.3.0] 2.8.0
  • React Native Version [e.g. 0.59] 0.64.3

Additional context
Add any other context about the problem here.

The package had a namechange from react-native-mapbox-gl to rnmapbox in this commit 27 days ago:

https://github.com/rnmapbox/maps/commit/90379a989919f5de03f9363748cc60025a16c591

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
KiwiKiliancommented, Apr 14, 2022

@ErikJungh the package is phasing over to a new npm package name, which is not yet deployed which might be a reason, why npm can’t resolve it. So you can just edit your dependencies in the package.json to look like this:

"@rnmapbox/maps": "github:rnmapbox/maps#main",

And run npm install afterwards. For me it works with eas build, but I haven’t tested expo run:ios.

1reaction
mfazekascommented, Apr 12, 2022

you don’t seems to have yarn installed and for now expo requires yarn because of the prepare script.

npm ERR! sh: yarn: command not found
Read more comments on GitHub >

github_iconTop Results From Across the Web

Not compatible with Expo 44 · Issue #1674 · rnmapbox/maps
Describe the bug Fails to build with Expo 44. This lib is mostly (hitting lots of the known Android bugs) working nicely for...
Read more >
@rnmapbox/maps - npm
Mapbox Maps SDK for React Native · News & Discussions · Prerequisite · Dependencies · Installation · Run Project · Adding a map...
Read more >
MapView - Expo Documentation
MapView. react-native-maps provides a Map component that uses Google Maps on Android and Apple Maps or Google Maps on iOS. No additional setup...
Read more >
MapBox SDK for React Native Installation shows Error
After running the following code: npm i @rnmapbox/maps which was written there, I get the same error message as written above. What should...
Read more >
Expo EAS and Mapbox React Native | Tutorial for ... - YouTube
Resources used/referred to: https://github.com/ rnmapbox / maps ... https://docs. expo.dev/build/ setup / 00:00 Introduction (Yay Expo !)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found