Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm ERR! missing script: android

Tags:

react-native

I get several npm ERR! when trying to run : D:\React Native\cleanProject>npm run android npm ERR! missing script: android

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\User\AppData\Roaming\npm-cache_logs\2019-03-26T08_39_44_164Z-debug.log

npm i

D:\React Native\cleanProject>npm run android npm ERR! missing script: android

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\User\AppData\Roaming\npm-cache_logs\2019-03-26T08_39_44_164Z-debug.log

like image 866
Client Avatar asked Oct 26 '25 10:10

Client


2 Answers

The command that you are trying to run is doesn't exist. Please try to run with this given below command.

react-native run-android
like image 68
Shubham Avatar answered Oct 29 '25 03:10

Shubham


I think you need to run the following command for installing 'react-native' project to your Node JS first.

npm install react-native

After that, also make sure an emulator is started or cell phone is connected with developer mode.

And then retry by running

react-native run-android

to see if you can build and run the your application successfully.

like image 40
garykwwong Avatar answered Oct 29 '25 04:10

garykwwong



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!