what I should do in this situation?

after creating a project using npm rect-native init command when i try to run the project i got some error

npm ERR! code E404

npm ERR! 404 Not Found - GET http://registry.npmjs.org/run-android - Not found

npm ERR! 404

npm ERR! 404 'run-android@latest' is not in the npm registry.

npm ERR! 404 You should bug the author to publish it (or use the name yourself!)

npm ERR! 404

npm ERR! 404 Note that you can also install from a

npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users<Username>\AppData\Roaming\npm-cache_logs\2020-09-14T05_04_23_787Z-debug.log Install for [ 'run-android@latest' ] failed with code 1

I tried so many thing like reinstalling react native or create new user but still have same problem please help!!!!!

1 answer

  • answered 2020-09-14 05:24 Prateek Thapa

    First, make sure you are inside project directory.

    I think the command you're looking for is if react-native-cli is installed

    react-native run-android
    

    cd into your project and run this command.

    OR

    you can run this command without react-native-cli installation:

    npx react-native run-android