ReactNative

#git下来的RN项目pod install失败——没有node

2020-03-15  本文已影响0人  Jesscia_Liu

一、问题场景

$ cd ~/Desktop/RN项目/iOS
$ pod install
[!] Invalid `Podfile` file: cannot load such file -- ~/Desktop/RT项目/node_modules/@react-native-community/cli-platform-ios/native_modules.

 #  from ~/Desktop/RT项目/ios/Podfile:2
 #  -------------------------------------------
 #  platform :ios, '9.0'
 >  require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
 #  
 #  -------------------------------------------

> require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

二、解决方法

$ cd ~/Desktop/RN项目
$ npm install npm
$ cd ~/Desktop/RN项目/ios
$ pod install
上一篇下一篇

猜你喜欢

热点阅读