TypeError: cb.apply is not a function

后端 未结 5 931
别跟我提以往
别跟我提以往 2021-02-04 03:46

I\'m trying to run an existing React Native project that uses Metro Bundler. My operating system is Ubuntu 20.04 and I\'ve tried to run the app both on a physical Android device

5条回答
  •  滥情空心
    2021-02-04 04:27

    I solved it on both my computers. One needed more work on it.

    • Option 1:

      • Follow this directory C:\Users(your username)\AppData\Roaming
      • Delete the npm folder
      • and if there is one npm cache folder. Run npm clean cache -force, or npm cache clean -force on windows ( — force is now required to clean cache)
      • You should be good now if not do option 2.
    • Option 2:

      • Follow this directory C:\Users(your username)\AppData\Roaming
      • Delete the npm folder
      • and if there is one npm cache folder. Run npm clean cache -force on linux, or npm cache clean on windows ( — force is now required to clean cache)
      • Make sure everything to do with Nodejs is deleted
      • and uninstalled NodeJS.
      • Reinstall Nodejs.
      • You should be good now.

提交回复
热议问题