error Failed to run jetifier. Run CLI with --verbose flag for more details

坚强是说给别人听的谎言 提交于 2020-01-06 07:22:04

问题


Initially I created projects that were running normally with react-native run-android, now it has the following error: Já tentei o comando: react-native run-android --no-jetifier

Detail the code that I circled, it no longer works for any project you try to create.

 PS C:\Users\Morgana Ribeiro\curso-react-native\nubank> react-native run-android`
    info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
    error Failed to run jetifier. Run CLI with --verbose flag for more details.    
Error: spawnSync C:\Users\Morgana Ribeiro\curso-react-native\nubank\node_modules\jetifier\bin\jetify ENOENT
        at Object.spawnSync (internal/child_process.js:1002:20)
        at spawnSync (child_process.js:614:24)
        at execFileSync (child_process.js:642:13)
        at Object.runAndroid [as func] (C:\Users\Morgana Ribeiro\curso-react-native\nubank\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:101:41)
        at Command.handleAction (C:\Users\Morgana Ribeiro\curso-react-native\nubank\node_modules\@react-native-community\cli\build\cliEntry.js:160:21)
        at Command.listener (C:\Users\Morgana Ribeiro\curso-react-native\nubank\node_modules\commander\index.js:315:8)
        at Command.emit (events.js:198:13)
        at Command.parseArgs (C:\Users\Morgana Ribeiro\curso-react-native\nubank\node_modules\commander\index.js:651:12)
        at Command.parse (C:\Users\Morgana Ribeiro\curso-react-native\nubank\node_modules\commander\index.js:474:21)
at setupAndRun (C:\Users\Morgana Ribeiro\curso-react-native\nubank\node_modules\@react-native-community\cli\build\cliEntry.js:210:24)

来源:https://stackoverflow.com/questions/57077095/error-failed-to-run-jetifier-run-cli-with-verbose-flag-for-more-details

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!