【发布时间】:2019-07-01 15:12:15
【问题描述】:
在我的 React-Native 项目中安装 Realm 后,当我尝试构建我的项目时,我收到以下错误:
`node-pre-gyp install --fallback-to-build`
> > Can't find module /../../node-pre-gyp
>
> ld: library not found for
> > -lRealmReact clang: error: linker command failed with exit code 1 (use -v to see invocation)
甚至,我尝试删除 nodemodules 和 package-lock.json 并安装了 npm。
我在 Mac 中这样做。
但是,同样的问题发生了。
【问题讨论】:
标签: node.js react-native realm node-modules realm-mobile-platform