View npm configuration via npm config ls , check registry
β npm config ls ; cli configs user-agent = "npm/2.14.2 node/v4.0.0 darwin x64" ; userconfig /Users/xxx/.npmrc email = " xxx@xx.com " registry = "https://registry.npm.taobao.org/"
If you use a third-party registry, for example, "taobao.org", etc., you will receive the error message "Invalid username or password."
Decision
Replace temporarily to use npmjs.org official registry:
npm config set registry https://registry.npmjs.org/
source share