2017-07-25 184 views
0

我使用的是Windows 10.我已经成功安装了android studio和java。 我正在使用最新的android studio版本2.3.3。 我科尔多瓦的版本是7.0.1 版本的NodeJS是7.7.0 NPM版本是4.1.2 我使用的Android API级别25科尔多瓦不添加android平台

当我使用cordova platform add android它显示的错误

Error: Failed to fetch platform [email protected]~6.2.2 Probably this is either a connection problem, or platform spec is incorrect. Check your connection and platform name/version/URL. Error: cmd: Command failed with exit code ENOENT

如何添加android平台。

请解决我的问题。

+0

您是否尝试过使用较低版本的npm和节点添加平台? – Keerthi

+0

没有。哪个版本可以使用。 – Joe

+0

你可以试试npm 3.8.6和node 5.12.0吗? – Keerthi

回答

0

我的环境变量路径缺少“C:\ Windows \ System32”。添加路径后。它已经成功运行。而且我还在我的系统上安装了git。