-
Notifications
You must be signed in to change notification settings - Fork 697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error while installing "npm i" to test the example #982
Comments
What version of npm are you using? That error is saying that npm pack is failing |
@nitaliano So the error happens when I try to install npm in the example folder of mapbox-gl. |
@nitaliano I downgraded my RN to 0.49.5 and now getting a different error when i try npm i. please see log below ./scripts/npm_pack_rngl.sh '.' is not recognized as an internal or external command, npm ERR! A complete log of this run can be found in: |
What type of shell are you running npm install in? You need to make sure it's a bash shell and that you're on a newer version of npm |
@nitaliano Im on widows, visual studio code running "cmd".. |
@amirmatin never got it to work either on windows cause of one file missing in the gitignore, and some other windows particularities of windows versus linux file name if I recall, but no problem for the install on ubuntu, I didn't get android studio there to get any further. I love to see it on windows though, despite what you think of windows, I got no choice |
I'm going to port the bash script over to node, so it will be easier to deal with cross platform OS issues |
@GuillotJessica An ugly hack to run this on windows is to compile the code first on a mac and then use that example project in windows .. |
We have step by step instructions it's as simple as adding things to native config files Android - https://github.com/mapbox/react-native-mapbox-gl/blob/master/android/install.md iOS - https://github.com/mapbox/react-native-mapbox-gl/blob/master/ios/install.md We also have a gitter chat setup if you want to ask me some or anyone else questions https://gitter.im/react-native-mapbox-gl Would be happy to help get you setup |
@amirmatin Try to remove react-native-mapbox-gl from package.json. Then run |
@TarasDumych I got it to work removing the package and manually installing for Android. A problem that I have at the moment is when I use offline maps and close the application, the second time I try to open the app, it crashes then the next time opens fine ... |
@amirmatin add |
@TarasDumych Good. thanks |
@TarasDumych im still facing that issue. Can you help please! |
Hey guys this repo is no longer being maintained. Please come over to the one that is being actively supported by our community here: https://github.com/react-native-mapbox-gl/maps |
…italiano#982) Co-authored-by: Michael Schwarz <michi@trecker.com>
This problem has been mentioned before in in the issues section here
mapbox/mapbox-gl-js#5025
However I am still seeing this problem.. ..
To be clear I am getting the following error
npm ERR! addLocal Could not install D:\Map_folder\react-native-mapbox-gl-master\mapbox-react-native-mapbox-gl-6.0.2.tgz
Is there finally a solution for this ?
Thanks
The text was updated successfully, but these errors were encountered: