npm install gives unauthorized name or password is incorrect error npm install gives unauthorized name or password is incorrect error node.js node.js

npm install gives unauthorized name or password is incorrect error


Found the answer.

Remove .npmrc from my home directory and it works!

Thanks to mcollina https://github.com/mcollina at https://github.com/isaacs/npm/issues/2778


 1.>Go to your this location    C:\Users\{your user name or ID} 2.> open .npmrc & Remove all content from .npmrc file. 3.>reopen your new command prompt 4.>again run the code , will work.


I was also having this problem. Mine has arised because I have changed my password in npmjs.org. So, try Login in npm from terminal again with your new password and then install any module. It worked for me.