尝试添加平台然后获取"无法获取平台cordova-android@~6.2.2"

时间:2017-05-31 09:45:04

标签: cordova ionic3

cordova平台添加android --save

    ? Running command - failed!**

    [ERROR] Cordova encountered an error.
            You may get more insight by running the Cordova command above directly.

    [ERROR] An error occurred while running cordova platform add android --save(exit code 1):

            **Using cordova-fetch for cordova-android@~6.2.2
            Error: Failed to fetch platform cordova-android@~6.2.2**
            Probably this is either a connection problem, or platform spec is icorrect.
            Check your connection and platform name/version/URL.
            Error: cmd: Command failed with exit code ENOENT

1 个答案:

答案 0 :(得分:1)

在环境变量中的用户变量/系统变量中设置路径=" C:\ Windows \ System32"