我在运行应用程序时遇到问题,我在互联网上发现的建议之一是升级react-native。所以我正在运行以下命令:npx react-native upgrade --verbose
,但出现错误:
info No version passed. Fetching latest...
info Fetching diff between v0.62.2 and v0.63.0...
error Attribute without value
Line: 15
Column: 9
Char: a
Error: Attribute without value
Line: 15
Column: 9
Char: a
at error (C:\pathToApp\node_modules\sax\lib\sax.js:651:10)
at strictFail (C:\pathToApp\node_modules\sax\lib\sax.js:677:7)
at SAXParser.write (C:\pathToApp\node_modules\sax\lib\sax.js:1340:13)
at new XmlDocument (C:\pathToApp\node_modules\xmldoc\lib\xmldoc.js:261:15)
at readManifest (C:\pathToApp\node_modules\@react-native-community\cli-platform-android\build\config\readManifest.js:38:10)
at Object.projectConfig (C:\pathToApp\node_modules\@react-native-community\cli-platform-android\build\config\index.js:70:46)
at Object.get project [as project] (C:\pathToApp\node_modules\react-native\node_modules\@react-native-community\cli\build\tools\config\index.js:106:50)
at getPatch (C:\pathToApp\node_modules\react-native\node_modules\@react-native-community\cli\build\commands\upgrade\upgrade.js:147:22)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Object.upgrade [as func] (C:\pathToApp\node_modules\react-native\node_modules\@react-native-community\cli\build\commands\upgrade\upgrade.js:307:17)