首页 > 解决方案 > Ionic 5 当我尝试使用cordova android build 时显示此错误?

问题描述

我收到以下错误:

Check your connection and platform name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! code ETARGET
npm ERR! notarget No matching version found for cordova-android@0.0.8
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\FSTECH-17\AppData\Roaming\npm-cache\_logs\2020-07-20T06_20_28_398Z-debug.log
[ERROR] An error occurred while running subprocess cordova.

        cordova.cmd platform add android --save exited with exit code 1.

        Re-running this command with the --verbose flag may provide more information.

标签: ionic5

解决方案


我想你的版本不存在。我正在使用版本“8.1.0”的cordova-android。


推荐阅读