运行本机应用程序时出现 node_modules 错误

时间:2021-01-26 06:20:26

标签: ios react-native

我正在尝试运行 react-native 应用程序,但是在执行 react-native run-ios 并在模拟器中打开应用程序时,我收到以下错误:

enter image description here

我尝试运行 npm install 无济于事。如何修复此错误?

1 个答案:

答案 0 :(得分:0)

安装这个包:

npm i @react-native-community/cli