Vue-fontawesome 与 Yarn
Vue-fontawesome with Yarn
我已经安装了所有依赖项以使用Font-Awesome with Vue。不过,当 运行 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\"".
我使用的是 Font-Awesome 免费版。
有人知道为什么吗?
编辑:要解决401
身份验证问题,我们可以使用此Github线程中的解决方案:https://github.com/yarnpkg/yarn/issues/3093#issuecomment-317671597
由此github issue and the answer to it here,我明白这是暂时的。
过几天 minutes/hours 再试一次,看看它是否恢复或尝试升级您的 yarn
。
另外,也许只是为了确保它不在你身边
yarn cache clean
yarn
还有这个其他解决方案,不确定它的价值:
有些人通过删除他们的 yarn.lock
解决了他们的问题,但在我看来,这个似乎有点过于极端和冒险。
我已经安装了所有依赖项以使用Font-Awesome with Vue。不过,当 运行 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\"".
我使用的是 Font-Awesome 免费版。
有人知道为什么吗?
编辑:要解决401
身份验证问题,我们可以使用此Github线程中的解决方案:https://github.com/yarnpkg/yarn/issues/3093#issuecomment-317671597
由此github issue and the answer to it here,我明白这是暂时的。
过几天 minutes/hours 再试一次,看看它是否恢复或尝试升级您的 yarn
。
另外,也许只是为了确保它不在你身边
yarn cache clean
yarn
还有这个其他解决方案,不确定它的价值:
有些人通过删除他们的 yarn.lock
解决了他们的问题,但在我看来,这个似乎有点过于极端和冒险。