在安装完成后境界阵营本土,无法找到模块/../../node-pre-gyp

问题描述 投票:2回答:1

安装的领域进入我的阵营本地项目,而我试图建立我的项目之后,我发现了以下错误:

`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和包lock.json并安装NPM。

我在苹果这样做。

但是,同样的问题发生。

node.js react-native realm node-modules realm-mobile-platform
1个回答
2
投票

尝试安装全球node-gyp。这样做的命令如下

npm install -g node-gyp
© www.soinside.com 2019 - 2024. All rights reserved.