-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to fetch platform cordova-android@~6.2.2 #2412
Comments
From @piotrowski on June 9, 2017 8:37 As the error message says:
Are you behind a corporate proxy? |
I'm getting something similar:
The NPM log file:
|
Downgraded from Node 8 to Node 6 (as suggested here: katzer/cordova-plugin-local-notifications#1329) and cordova was able to add android. Still ran into some difficulties with old plugins whose repos lacked package.json files, so had to hunt down forks of those plugins that're maintained / have a package.json file. |
@toddmedema Thank you for the information. |
i have this error plz help me |
@hadijahangiri Try setting path = "C:\Windows\System32" in variable/system variable |
add this line in your environment varible in path |
× Running command - failed! |
How to fix it ? |
@Jumong you must open windows environment variables and add to path = "C:\Windows\System32" in system variables |
ok thanks
…On Sat, Aug 19, 2017 at 8:51 AM, madsongr ***@***.***> wrote:
@Jumong <https://github.com/jumong> you must open windows environment
variables and add to path = "C:\Windows\System32" in system variables
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2412 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYOO8OLPFKLXs5p-J-D9inHb5ickLAthks5sZjF9gaJpZM4N1a12>
.
|
@madsongr my os osX |
Am having the same issue now and adding "C:\Windows\System32" did not resolve my issue. Any help here would be great. My Ionic Info command returns the below:
|
i have the same error.. |
@jln1989 is it working now? |
@madsongr yes thank you |
I downgraded |
I have C:\Windows\System32 already, but I still have this problem. |
@topphon try update to node 8.4.0, work for me... |
Well, generally adding |
@topphon follow the steps from this link http://ionicframework.com/docs/v1/guide/installation.html and pay attention on red links for windows/linux |
@madsongr : Apologies for not getting back early. My issue got resolved yesterday after reinstalling NPM and running the CMD as administrator. Thanks for the help. |
For me it was a typo.. andorid instead of android 🤦♂️ |
I had this same issue, adding the C:\Windows\System32 did not work for me, and I was already running it as admin. I finally got it to work but downgrading my npm to 3.10.0. |
Same issue i am encontering in Linux system how to solve this...??? |
@JayanthkumarJK what version of node and npm are you running? May have to upgrade node to 8.4.0 like @Daym3l or downgrade npm to something like 3.10.0 like I did |
work-around at silimar issue (#2538) |
Try install old version. |
Today i am getting this ERROR, try every possible solution above mentioned but did not working. `× Running command - failed!
|
I also have this error, some solution? I've tried everything above, and I'm a linux user. |
@TomohikoTsuji solution worked for me. |
@TomohikoTsuji solution worked for me too. |
Error: Failed to fetch platform cordova-android@~6.2.2 I have the above problem please help me if anyone knows , thanks . |
As @TomohikoTsuji stated, just use the below commands. That worked for me npm uninstall -g cordova |
adding the PATH helped me..thanks |
I wasn't able to add both cordova-ios@^4.4.0 and cordova-android@^6.2.3. Tried to ran 'npm update' before 'ionic cordova prepare', which updated the version of cordova-ios and cordova-androi and fixed the platform fetch issue. |
##Here is the Solution that help me. If you are in Windows usually this kind of error happens when you don't have all the paths required in your system environment path variable . Please paste this line on your system environment Path variable: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Windows\System32;
|
hey @madsongr i tried your method but whenever i am setting my path variable to C:\Windows\System32 |
@suraj1212 probably you don't have node installed globally. |
So i installed OpenSSH and it erased my whole PATH, adding C:\Windows\System32 to the PATH fixed it |
C:\Windows\System32 this is awesome . add to system variable in path. |
After those steps, i cleaned the dir at |
This worked for me: |
I added C:\Windows\System32 to system variables and clean the directory as @Kreedzt said, but still the same error, please help:
|
Anyone solved this for Linux or iOS ? |
I am having the same problem for all platforms:
|
10q sir it works |
Try removing the |
From @iamkhan001 on June 9, 2017 7:20
getting error while adding android platform
D:\Imran\ionic\notifications>ionic cordova platform add android
[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova platform add android --save (exi
t code 1):
ect.
Check your connection and platform name/version/URL.
Error: cmd: Command failed with exit code ENOENT
Copied from original issue: ionic-team/ionic-framework#11989
The text was updated successfully, but these errors were encountered: