Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova: Error adding android platform

Tags:

cordova

I tried to add android platform to my project but I got error:

~/learn/hello$ cordova platform add android
npm http GET https://registry.npmjs.org/cordova-android/4.0.0
npm http 401 https://registry.npmjs.org/cordova-android/4.0.0
Unable to fetch platform android: Error: unauthorized Name or password is incorrect.: cordova-android/4.0.0

I'm wondering why this is happening Cordova version 5.0.0, Phonegap version 5.0.0-0.27.1

like image 357
Mohamed Salah Avatar asked Feb 11 '23 06:02

Mohamed Salah


1 Answers

I think this issue because of .npmrc in your home directory, just remove it and everything should work

like image 134
Hazem Hagrass Avatar answered Feb 12 '23 19:02

Hazem Hagrass