【发布时间】:2017-12-13 09:53:04
【问题描述】:
我在 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版本?cordova是什么版本? -
npm 是 5.4.2,cordova 是 7.1.0
-
@dny 我尝试使用 cordova 7.1.0 和 android 版本 6.3.0,效果很好。我能看到的唯一区别是我的节点版本 6.9.2 只需尝试使用最新的节点版本并确保您的网络连接正确
标签: android node.js cordova ubuntu