[
https://issues.apache.org/jira/browse/CB-12767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16001687#comment-16001687
]
Phillip Whiteley commented on CB-12767:
---------------------------------------
Thanks..
Can I say I have been successfully using node, npm and cordova for years - on
same machine in this instance. npm - v - 4.1.1. I just added express - seems
to be working ok for that. npm is global.
-----------------------
Tried "cordova platform add [email protected]" - same response. This is a
bit different from my previous reported bug - now I have 7 on.
-----------------------
cordova platform add [email protected] --nofetch [ also failed with no
--nofetch ]
Error: Failed to fetch platform [email protected]
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: Cordova library "cordova-android" not recognized. [ I usually just add
android? ]
-----------------------
HOLD THE PHONE!
cordova platform add android --nofetch - WORKED!
cordova build - WORKED!
cordova run - WORKED!
FANTASTIC!
Ok - so the changes in 7 need fixing so it works straight up..
-----------------------
Aside:
Can I ask - do either of you have a PC and Android Studio installed? I didn't
use it previously but am forced to for work - this is when all the problems
started. You know they have broken access to the sdk and avd managers - you
can't use the sdk unless through Android Studio! I tried -= seems that way on
my system.
Interestingly I have installed an older stand alone sdk on my server - works
fine all the way to gradle - which I will install by hand.
Anyway thanks for your help..Working with the --nofetch..
Cheers
Phil
> Cordova 7 fails to add android platform Windows 10
> --------------------------------------------------
>
> Key: CB-12767
> URL: https://issues.apache.org/jira/browse/CB-12767
> Project: Apache Cordova
> Issue Type: Bug
> Affects Versions: cordova-7
> Environment: Windows 10
> Cordova 7
> npm 4.1.1
> Reporter: Phillip Whiteley
>
> Just upgraded to cordova 7 - hoping to fix my previous reported bug but
> instead get new problem.. I have used cordova for years without any issues -
> is this all because of Google? Appreciate any help..
> C:\Users\phil\Desktop\week9Tute\wk9app>cordova platform add android
> Using cordova-fetch for cordova-android@~6.2.2
> Error: Failed to fetch platform cordova-android@~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:\Program Files\nodejs\npm"' is not recognized as an internal or external
> command,
> operable program or batch file.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]