React-native: react native fbsdk MODULE_NOT_FOUND after link commend

Created on 28 Mar 2017  路  5Comments  路  Source: facebook/react-native

I 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.

Locked

Most helpful comment

react-native install react-native-fbsdk is not a valid command.

try this inside the app folder

npm i -S react-native-fbsdk

All 5 comments

react-native install react-native-fbsdk is not a valid command.

try this inside the app folder

npm i -S react-native-fbsdk

Thanks @stoffern
What weird is that in all doc it is written:
react-native install react-native-fbsdk

Weird...

please send a PR to react-native-fbsdk about this.
This issue can be closed

I will do PR now.

I have this error now:

https://github.com/facebook/react-native/issues/9136

@stoffern Hey Kristoffer, problem solved:
http://stackoverflow.com/a/43217182/2862728

Was this page helpful?
0 / 5 - 0 ratings