expo install rnmapbox/maps NOT FOUND
See original GitHub issueDescribe 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.
- create a new folder
- run: expo init
- follow instructions to set up a blank managed workflow
- cd {projectname}
- npm install mapbox-gl
- “mapbox-gl”: “^2.8.0”, is added to package.json
- run expo install rnmapbox/maps OR expo install rnmapbox/maps#main OR npm install rnmapbox/maps
- “undefined”: “rnmapbox/maps” is added to package.json
- 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:
- Created a year ago
- Comments:8 (3 by maintainers)
Top GitHub Comments
@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 yourdependencies
in thepackage.json
to look like this:And run
npm install
afterwards. For me it works witheas build
, but I haven’t testedexpo run:ios
.you don’t seems to have yarn installed and for now expo requires yarn because of the prepare script.