android - installing npm modules removes react-native-cli -
i have react-native project install modules using
npm install some-module -save package.json includes react-native-cli
now, every time command react-native run-android not available anymore. have run
yarn add react-native-cli in order available again. also, gradle file of modules out of sync when means running android studio , updating these.
i find confusing. earlier in project, using npm , had no problems.
i think can try
npm install -g <package> --save
Comments
Post a Comment