Adding novigation to blank proj results in unable to resolve module 'react-native'

I am trying to learn Expo navigation. So I created a blank proj using XDE. Then
$npm install react-navigation --save .

then in App.js:

import {StackNavigator, DrawerNavigator, TabNavigator} from ‘react-navigation’;

Then I see Unable to resolve module ‘react-native’

Any tip, please?


Hey @imo,

This definitely shouldn’t happen. Out of curiosity, what version of npm are you using? If you are using npm5, I would suggest trying to downgrade to npm@4.6.1 or rather use Yarn and see if that resolves the issue.



This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.