react-native: Command `run-android` unrecognized. Maybe caused by npm install

后端 未结 2 1979
北恋
北恋 2021-01-05 06:09

Recently I started getting this issue, when I install a react-native package (eg: react-navigation) into my project, a whole bunch of packages are been removed

2条回答
  •  醉话见心
    2021-01-05 06:45

    Found the solution here.

    At first running npm install didn't work, but then, deleting the package-lock.json file and running npm install did the job.

    After that I installed react-navigation package seperately and it worked fine.

提交回复
热议问题