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

Popular posts from this blog

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

image - python get coordinates (pixels) of corresponding points from clicks -