2017-07-25 181 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。