When using the error code E401, PW npm install, Unable to authenticate, need: BASIC realm = "Sonatype Nexus Repository Manager"

Error message shown in Figure

 

 

 First, the deleted items folder below node_modules folder, delete the package-lock.json (This document will record the old information, refer to as the install), this step corresponds to clear the cache

  And then re-execute the command npm install 

Second, or not?

  Manual landing warehouse address, follow the prompts to enter the account name, password, email

npm the Login Registry = ""     ----- quotes filling warehouse address

 

 

 

  Displays logged in as *** represents the successful landing

  Npm install again

  Problem solving, well done !!

  

 

Guess you like

Origin www.cnblogs.com/icemargin/p/12660923.html