Cordoba: Error adding Android platform

I tried to add the android platform to my project, but I got 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 wonder why this is happening Cordoba version 5.0.0, Phone version 5.0.0-0.27.1

+4
source share
2 answers

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

+8
source

Most likely you have the credentials in your .npmrc file that you need to publish, and cordova misinterprets them for use.

: https://issues.apache.org/jira/browse/CB-8956 5.1+ ( , )

Cordova 5.0.0 , :

$HOME = { } add android

0

All Articles