0

我将此发布到 react-native 问题:

环境

Environment:
OS: macOS Sierra 10.12.6
Node: 7.10.0
Yarn: 1.3.2
npm: 5.6.0
Watchman: 4.7.0
Xcode: Xcode 8.0 Build version 8A218a
Android Studio: 1.5 AI-141.2456560

Packages: (wanted => installed)
react: 16.0.0-alpha.12 => 16.0.0-alpha.12
react-native: 0.48.0 => 0.48.0

重现步骤

react-native link react-native-fbsdk
or simply
react-native link

预期行为

我以为它会链接 react-native-fbsdk

实际行为

rnpm-install ERR! ERRPACKAGEJSON No package found. Are you sure this is a React Native project?

Cannot read property '_text' of undefined

可重现的演示

这是一个工具问题,只能在命令行重现,与应用程序无关。

4

1 回答 1

1

使用安装 fbsdk react-native install react-native-fbsdk,然后尝试链接到您的项目react-native link react-native-fbsdk以获取更多信息,请参阅文档

于 2017-12-10T11:02:03.097 回答