在Cordova项目中添加平台时发生错误



我已经在Cordova项目上创建了,但是在添加平台时,它给了我以下错误:

dev@dny:~/AngularCordova/13_12_2017/myApp$ cordova platform add android

使用Cordova-fetch进行Cordova-android@~6.3.0

错误:

Failed to fetch platform cordova-android@~6.3.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! code E404
npm ERR! 404 Not Found: cordova-android@~6.3.0
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/dny/.npm/_logs/2017-12-13T09_52_01_436Z-debug.log

npm install -g android@latest

为我解决了这个问题。

还更新了Android Cordova与

一起使用
'npm install -g cordova-android'

相关内容

最新更新