Ionic 2:未处理承诺拒绝警告:错误:平台"andorid"似乎尚未添加到此项目中



运行 porject 时出现以下错误:

(node:5692) UnhandledPromiseRejectionWarning: Error: The platform "andorid" does not appear to have been added to this project.
at Object.getPlatformApi (C:Userssivaramakrishnan.mAppDataRoamingnpmnode_modulescordovanode_modulescordova-libsrcplatformsplatforms.js:46:15)
at C:Userssivaramakrishnan.mAppDataRoamingnpmnode_modulescordovanode_modulescordova-libsrccordovaprepare.js:54:38
at Array.map (<anonymous>)
at C:Userssivaramakrishnan.mAppDataRoamingnpmnode_modulescordovanode_modulescordova-libsrccordovaprepare.js:52:47
at _fulfilled (C:Userssivaramakrishnan.mAppDataRoamingnpmnode_modulescordovanode_modulescordova-libnode_modulesqq.js:787:54)
at self.promiseDispatch.done (C:Userssivaramakrishnan.mAppDataRoamingnpmnode_modulescordovanode_modulescordova-libnode_modulesqq.js:816:30)
at Promise.promise.promiseDispatch (C:Userssivaramakrishnan.mAppDataRoamingnpmnode_modulescordovanode_modulescordova-libnode_modulesqq.js:749:13)
at C:Userssivaramakrishnan.mAppDataRoamingnpmnode_modulescordovanode_modulescordova-libnode_modulesqq.js:557:44
at flush (C:Userssivaramakrishnan.mAppDataRoamingnpmnode_modulescordovanode_modulescordova-libnode_modulesqq.js:108:17)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
(node:5692) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:5692) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[OK] Your app has been deployed.
Did you know you can live-reload changes from your app with --livereload?

看起来你在平台上有一个错别字:"andorid"而不是"android">

您是否检查了用于构建的命令?

相关内容

  • 没有找到相关文章

最新更新