2017-09-02 261 views
0

我安裝科爾多瓦,但同時增加了平臺得到它的這個錯誤科爾多瓦平臺添加錯誤

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 1 Error output: 
'C:\Windows\system32\npm' is not recognized as an internal or external command, 
operable program or batch file 

但是當我運行npm -v它返回NPM版本有啥問題?我在環境變量中添加了一切。

+1

'C:\ WINDOWS \ SYSTEM32 \ npm'?你運行的是哪個文件夾?你在Admin cmd中運行嗎? E:驅動器中的項目文件夾中的 –

+0

,並在管理員cmd中爲yes。 – ssj

+0

嘗試將您的項目移動到主文件夾,並嘗試使用非admin cmd –

回答

0

我只是解決安裝Android SDK中後,問題只是鍵入此命令 cordova platform add android --nofetch

相關問題