npm install gives unauthorized name or password is incorrect error

前端 未结 10 735
北荒
北荒 2021-02-01 14:35

When I try to install tap using

npm install tap

I get the following error:

npm ERR! Error: unauthorized Name or password is inc         


        
10条回答
  •  深忆病人
    2021-02-01 15:16

    You might have _auth entry configured in the .npmrc config file ($HOME/.npmrc). Just delete the entry if you are using the public registry as it's not needed. If you're using a private npm registry you should check with your admin that that's the correct auth key for you to access the registry.

    I would not recommend just deleting the whole file (.npmrc) as the file might contain important configurations for your npm to work correctly. i.e.: proxy config.

提交回复
热议问题