美文网首页
npm ERR! code E401

npm ERR! code E401

作者: 薯条你哪里跑 | 来源:发表于2023-02-19 14:19 被阅读0次

执行npm install安装npm包的时候报错

npm ERR! code E401
npm ERR! Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager"
WechatIMG170.png

解决

执行npm config list 找到.npmrc文件存放的位置

image.png

_authToken移除,重新npm install即可

image.png

相关文章

网友评论

      本文标题:npm ERR! code E401

      本文链接:https://www.haomeiwen.com/subject/tpvikdtx.html