防止`npm install`重新编译React Native app

时间:2017-06-01 11:48:11

标签: react-native npm npm-install react-native-ios

我们的React Native应用程序具有后端依赖项(react-native-ble-plx),需要使用carthage编译后端框架。每次我运行npm install iOS框架时,这种依赖依赖于重新编译,这需要很长时间(> 10分钟)。

有没有办法(npm参数?)让npm install每次运行时都不会从头开始重新编译所有内容?

1 个答案:

答案 0 :(得分:2)

请改用npm update。它只会下载和安装需要更新的软件包(使用SemVer版本控制规则)。