I tried to run the command:
npm install -g @angular/cli@9.1.0
but I have got the following error:
npm ERR! code E401
npm ERR! Unable to authenticate, need: Basic realm="Artifactory Realm"
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/xxxx/.npm/_logs/2021-08-10T19_33_12_063Z-debug.log
note: node js and npm worked fine.
I have followed the instructions in Artifactory to solve this issue using the command:
npm config set registry https://artifactory.......com/artifactory/api/npm/xxxx/
as I have paste the following into the ~/.npmrc file :
_auth = fhgf......ghgj==
email = xxx@xxx.com
always-auth = true
I have also tried using npm login, but I have got the below err and couldn’t continue:
npm login
Username: xxx@xxx.com
npm WARN Name may not contain non-url-safe chars
Username: (xxx@xxx.com)
Username: (xxx@xxx.com)
Username: (xxx@xxx.com)
Username: (xxx@xxx.com)
How can i solve this issue?