skip to Main Content

Below is the error while installing react native navigation. help me to sort out this problem:

npm install -- save react-navigation
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path E:ReactNativelogwithfirebasenode_modules@react-navigationcorenode_modulesreact-is
npm ERR! dest E:ReactNativelogwithfirebasenode_modules@react-navigationcorenode_modules.react-is.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'E:ReactNativelogwithfirebasenode_modules@react-navigationcorenode_modulesreact-is' -> 'E:ReactNativelogwithfirebasenode_modules@react-navigationcorenode_modules.react-is.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:UsersasadcAppDataRoamingnpm-cache_logs2022-08-09T08_24_34_577Z-debug.log

3

Answers


  1. Do you mean to run this ?
    npm install @react-navigation/native

    Ref:
    https://reactnavigation.org/docs/getting-started/

    Login or Signup to reply.
  2. Here is the complete Installation for React Native Navigation

    Install the React Navigation by following command.
    npm install @react-navigation/native
    After the installation Follow next steps:

    1.npm install react-native-screens react-native-safe-area-context

    If this doesn’t work then
    Remove the dependencies @react-navigation/native from package.json

    Please remove your
    node_modules
    package-lock.json

    and follow the same process again.

    Thanks!!

    Login or Signup to reply.
  3. If you work on mac, that might be the reason. And you should run

    yarn add @react-navigation/native
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search