简体   繁体   中英

Artifactory UI download OK, npm install fail with auth error

How do we get scoped repo using artifactory?

  • setup npm.fontawesome.com remote repo in artifactory according to the doc
  • used username TOKEN and password - the actual token
  • auth check in UI OK
  • listing of @fortawesome/angular-fontawesome visible in UI
  • download of artifact via uI OK
  • npm rc defines scoped repo
@fortawesome:registry=https://artifactory/artifactory/api/npm/npm-fontawesome.com-remote/

Anonymous access granted to 3rdparty repo for users in my env - build machines included

npm -i fails with auth where the system looks to be going directly do npm.fontawesome.com and not my artifactory repo

2999 verbose stack HttpErrorAuthUnknown: Unable to authenticate, need: Basic realm="https://npm.fontawesome.com/",service="npm.fontawesome.com"
2999 verbose stack at /usr/local/lib/node_modules/npm/node_modules/npm-registry-fetch/lib/check-response.js:80:17
2999 verbose stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Alas, use of token auth for npm repos is not yet supported by jfrog artifactory (see RTFACT-19164 )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM