FortAwesome / Font-Awesome

The iconic SVG, font, and CSS toolkit
https://fontawesome.com
Other
73.63k stars 12.19k forks source link

Pro account yarn install both free and pro packages but 401s for free packages #15804

Open Undistraction opened 4 years ago

Undistraction commented 4 years ago

Describe the bug When we install font awesome packages on our CI we get a 401 for free packages:

We install with

yarn install --unsafe-perm --frozen-lockfile --non-interactive

Our .npmrc:

@fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken=XXXXXXXXXXXXXXXXXXXXXXXXXX

Error:

error An unexpected error occurred: "https://npm.fontawesome.com/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-1.2.25.tgz: Request failed \"401 Unauthorized\"".

yarn.lock:

"@fortawesome/fontawesome-common-types@^0.2.25":
  version "0.2.25"
  resolved "https://npm.fontawesome.com/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.25.tgz#6df015905081f2762e5cfddeb7a20d2e9b16c786"
  integrity sha512-3RuZPDuuPELd7RXtUqTCfed14fcny9UiPOkdr2i+cYxBoTOfQgxcDoq77fHiiHcgWuo1LoBUpvGxFF1H/y7s3Q==

"@fortawesome/fontawesome-svg-core@^1.2.8":
  version "1.2.25"
  resolved "https://npm.fontawesome.com/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-1.2.25.tgz#24b03391d14f0c6171e8cad7057c687b74049790"
  integrity sha512-MotKnn53JKqbkLQiwcZSBJVYtTgIKFbh7B8+kd05TSnfKYPFmjKKI59o2fpz5t0Hzl35vVGU6+N4twoOpZUrqA==
  dependencies:
    "@fortawesome/fontawesome-common-types" "^0.2.25"

"@fortawesome/free-brands-svg-icons@^5.6.3":
  version "5.11.2"
  resolved "https://npm.fontawesome.com/@fortawesome/free-brands-svg-icons/-/free-brands-svg-icons-5.11.2.tgz#39d4296d03bf5719c579dea4bdcdd356ed2de0b4"
  integrity sha512-wKK5znpHiZ2S0VgOvbeAnYuzkk3H86rxWajD9PVpfBj3s/kySEWTFKh/uLPyxiTOx8Tsd0OGN4En/s9XudVHLQ==
  dependencies:
    "@fortawesome/fontawesome-common-types" "^0.2.25"

"@fortawesome/pro-regular-svg-icons@^5.11.2":
  version "5.11.2"
  resolved "https://npm.fontawesome.com/@fortawesome/pro-regular-svg-icons/-/pro-regular-svg-icons-5.11.2.tgz#e9185f15555a16748612044211444463c005d97f"
  integrity sha512-y1WLNjf/AMN+Mh+CojlOoKfk9miKPDB3P3r7cj3WP7yjxmDX09YyYHkxSWP2HOK9xJulmVN36CbNcMVS8Mrqpg==
  dependencies:
    "@fortawesome/fontawesome-common-types" "^0.2.25"

"@fortawesome/pro-solid-svg-icons@^5.6.3":
  version "5.11.2"
  resolved "https://npm.fontawesome.com/@fortawesome/pro-solid-svg-icons/-/pro-solid-svg-icons-5.11.2.tgz#5d72c801b3413191a81841c606d8cc7926014b76"
  integrity sha512-YYrEFhda4KIUweXed1s+RQko53O7rXGK1jEbdlGXZlHnNTX7OyrkvJDQYqhQ7H+H62HV0BxF/xtDXvSJRlyO1Q==
  dependencies:
    "@fortawesome/fontawesome-common-types" "^0.2.25"

"@fortawesome/react-fontawesome@^0.1.3":
  version "0.1.4"
  resolved "https://npm.fontawesome.com/@fortawesome/react-fontawesome/-/react-fontawesome-0.1.4.tgz#18d61d9b583ca289a61aa7dccc05bd164d6bc9ad"
  integrity sha512-GwmxQ+TK7PEdfSwvxtGnMCqrfEm0/HbRHArbUudsYiy9KzVCwndxa2KMcfyTQ8El0vROrq8gOOff09RF1oQe8g==
  dependencies:
    humps "^2.0.1"
    prop-types "^15.5.10"

Expected behavior Installation should succeed.

Version and implementation CI: Gitlab self-hosted yarn: 1.19.1 node: v8.13.0

Bug report checklist

tagliala commented 4 years ago

Hi!

Thanks for being part of the Font Awesome Community and sorry for the late reply.

Is this still an issue?

ArturKaluza commented 4 years ago

Hi! I have the same issue. Any solution?

My issue gone.

kavymi commented 4 years ago

Hello,

This is an issue for me. Trying to install with a pro license.

npm ERR! code E404 npm ERR! 404 Not Found - GET https://npm.fontawesome.com/EDITED-BY-TAGLIALA/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.25.tgz npm ERR! 404 npm ERR! 404 '@fortawesome/fontawesome-common-types@0.2.25' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.

tagliala commented 4 years ago

@kavykun please check the new documentation available at https://fontawesome.com/how-to-use/on-the-web/setup/using-package-managers

@kavykun please also get in touch with us at hello@fontawesome.com and link to this issue because you have accidentally shared your private token, that was supposed to be secret

muhaimincs commented 4 years ago

I'm still having problem when being deploy in Heroku

@fortawesome/fontawesome-svg-core: "^1.2.26"

tagliala commented 4 years ago

@muhaimincs are you using the pro npm repo or the free one?

If you are using the pro repo, please get in touch with hello@fontawesome.com, otherwise I cannot replicate: https://ruby2-rails5-bootstrap-heroku.herokuapp.com/

Relevant commit: diowa/ruby2-rails5-bootstrap-heroku@86b021a5031a73d74b599d473b8045e9c1a53f03

muhaimincs commented 4 years ago

nevermind I solved it. I try to deploy on Heroku and it doesn't like the .lock file