我尝试运行命令:
\nnpm install -g @angular/cli@9.1.0\nRun Code Online (Sandbox Code Playgroud)\n但我有以下错误:
\n\n\nnpm 错误!代码E401
\n
\nnpm 错误!无法验证,需要:Basic Realm=“Artifactory Realm”npm 错误!此运行的完整日志可以在以下位置找到:
\n
\nnpm ERR!/Users/xxxx/.npm/_logs/2021-08-10T19_33_12_063Z-debug.log
注意:node js 和 npm 工作正常。
\n我已按照 Artifactory 中的说明使用以下命令解决此问题:
\nnpm config set registry https://artifactory.......com/artifactory/api/npm/xxxx/\nRun Code Online (Sandbox Code Playgroud)\n因为我已将以下内容粘贴到 ~/.npmrc 文件中:
\n_auth = fhgf......ghgj==\nemail = xxx@xxx.com\nalways-auth = true\nRun Code Online (Sandbox Code Playgroud)\n我也尝试过使用npm login,但出现以下错误并且无法\xe2\x80\x99t 继续:
\n\nnpm 登录
\n
\n用户名:xxx@xxx.com
\nnpm 警告名称不能包含非 url 安全字符
\n用户名:(xxx@xxx.com)
\n用户名:(xxx@xxx.com)
\n用户名:(xxx@xxx .com)
\n用户名: (xxx@xxx.com)
我该如何解决这个问题?
\n