React-native@0.26.3 requires a peer of react@15.0.2 but none was installed

后端 未结 4 1457
离开以前
离开以前 2021-02-19 12:23

I am trying to set up for the react native. but whenever I update files it gives m error

    enoent ENOENT: no such file or directory, open \'React Native/packa         


        
4条回答
  •  庸人自扰
    2021-02-19 12:57

    In my specific case I was running npm install in the wrong directory. I thought I was in my project directory but was one level higher. This meant react was missing from installed packages (because there were none) and thus gave this error.

提交回复
热议问题