Cordova: Error when adding the Android platform

I tried to add the android platform to my project, but I received an 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 want to know why this happens
Cordova version 5.0. 0,
Phonegap version 5.0.0-0.27.1

I think this problem is due to .Npmrc in your home directory, just delete it, everything should work

I tried to add the android platform to my project, but I got the 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 want to know why this happens
Cordova version 5.0.0,
Phonegap version 5.0.0-0.27.1

I Think this problem is because of .npm in your home directory rc, just delete it, everything should work

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3772 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.