报错:
npm ERR! code E401
npm ERR! Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager
解决1:
终端中输入 npm config list 查看 npm 的路径,找到路径下的 .npmrc 文件
打开 .npmrc 文件, 把所有的私有仓库的地址和 NpmToken删掉,然后重新 npm install 即可
解决2:
作者找了两个小时才解决哦!
终端中输入 npm config list 查看 npm 的路径,找到路径下的 .npmrc 文件,该里面内容就可以正常启动了
欢迎大家探讨。