Posts

Showing posts with the label npm-install

React Native Camera

Hey there! So, I'm testing React-Native and this problem have come up, and not sure what it wants. I have upgraded it, and also download latest versions. This is the error: npm WARN react-native-camera@0.6.0 requires a peer of react@>=15.4.0 but none was installed. It won't allow me to download it running the following command npm install react-native-camera --save Thanks for your time. Hey i had the same problem with react native camera First make sure the version is up to date.Either latest or next. Unless update it as npm install npm@latest -g Then reinstall camera again(No need to uninstall anything, because it is not installed yet) Here is the same issue that i opened in github now Closed because it solved the problem :) EDIT: i'm sure you got this error when you start to run npm install react-native-camera@https://github.com/lwansbrough/react-native-camera.git --save command right ? so it failed and never installed so...

Cannot resolve 'react-native'

I am trying to import react-native module into my react app. When I start my app server using 'npm start', I get the following error : Module not found: Can't resolve 'react-native' I have done following steps: cleaned npm cache using 'npm cache verify' deleted node_modules rerun the command 'npm install' checked package.json file if it has react-native dependency listed Nothing worked for me. Please help!! Try to recreate your app using the react native CLI. Use the command npm install -g react-native-cli, then use react-native init ProjectName and after that try to run the project. If you cannot create a new app for any reason, try to install the react-native-cli anyway and try to run react-native run-android or react-native run-ios (depending on the plataform you want to use as a tester_ instead of npm start.