简体   繁体   English

Vue-fontawesome with Yarn

[英]Vue-fontawesome with Yarn

I've installed all the dependencies to use Font-Awesome with Vue .我已经安装了所有依赖项来使用Font-Awesome 和 Vue Nevertheless, I get this error when running yarn :不过,运行yarn时出现此错误:

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

I'm using the free version of Font-Awesome.我正在使用 Font-Awesome 的免费版本。

Someone has any idea why?有人知道为什么吗?

EDIT : To solve the 401 authentication issue, we can use the solution from this Github thread: https://github.com/yarnpkg/yarn/issues/3093#issuecomment-317671597编辑:要解决401身份验证问题,我们可以使用此 Github 线程中的解决方案: https://github.com/yarnpkg/yarn/issues/3093#issuecomment-317671597


From this github issue and the answer to it here , I do understand that this is temporary.从这个github 问题这里的答案,我明白这是暂时的。

Try it again in a few minutes/hours to see if it's back or try to upgrade your yarn .几分钟/几小时后再试一次,看看它是否回来了,或者尝试升级你的yarn

Also, maybe try just to be sure that it's not on your side另外,也许只是为了确保它不在你身边

yarn cache clean
yarn

There is also this other solution, not sure what it's worth: https://stackoverflow.com/a/49371861/8816585还有这个其他解决方案,不确定它的价值: https://stackoverflow.com/a/49371861/8816585

Some people fixed their issue by deleting their yarn.lock but this one seems a bit too extreme and risky IMO.有些人通过删除他们的yarn.lock解决了他们的问题,但这似乎有点过于极端和冒险的 IMO。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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