react native fbsdk MODULE_NOT_FOUND after link commend
See original GitHub issueI opened bug on Facebook developer support tool and after investigation I received this answer: “We investigated this and it looks like an issue with React Native itself. Can you please report the issue using our React Native issue tracker at https://github.com/facebook/react-native/issues? On this tool we don’t currently support React Native itself, but we support its Facebook SDK.”
I’m trying to install and link react-native-fbsdk package and I got this error:
[Error: Cannot find module 'C:\wamp\www\chatapp\node_modules\react-native-fbsdk\package.json'] code: 'MODULE_NOT_FOUND'
I went through these steps:
react-native init [YourApp]
Done successfully.
react-native install react-native-fbsdk
Output: Scanning 712 folders for symlinks in C:\wamp\www\chatapp\node_modules (26ms) rnpm-install info Module react-native-fbsdk has been successfully installed & linked
react-native link react-native-fbsdk
Output: Scanning 712 folders for symlinks in C:\wamp\www\chatapp\node_modules (29ms) { [Error: Cannot find module ‘C:\wamp\www\chatapp\node_modules\react-native-fbsdk\package.json’] code: ‘MODULE_NOT_FOUND’ }
More Info:
- React native version: 0.42.3
- npm -version 4.2.0
- I didn’t find “react-native-fbsdk” folder under my node_modules folder.
- Windows 8.1
- I’m working with Android Studio
- Android SDK Platform-Tools 25.0.4
- Android SDK Tools 25.2.3
Print screens: Console Packages versions
Thank you in advance. Leo.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
react-native install react-native-fbsdk is not a valid command.
try this inside the app folder
@stoffern Hey Kristoffer, problem solved: http://stackoverflow.com/a/43217182/2862728