Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

前端编译报错 #2291

Open
OYF0910 opened this issue Nov 18, 2024 · 8 comments
Open

前端编译报错 #2291

OYF0910 opened this issue Nov 18, 2024 · 8 comments

Comments

@OYF0910
Copy link

OYF0910 commented Nov 18, 2024

运行npm install 的时候报错,具体报错信息如下:

21302 warn The package axios is included as both a dev and production dependency.
21303 verbose stack Error: Unable to authenticate, need: Basic realm="https://npm.fontawesome.com/",service="npm.fontawesome.com"
21303 verbose stack     at E:\Program Files (x86)\nodeJs\node_modules\npm\node_modules\npm-registry-fetch\check-response.js:107:17
21303 verbose stack     at runMicrotasks (<anonymous>)
21303 verbose stack     at processTicksAndRejections (internal/process/task_queues.js:95:5)
21304 verbose statusCode 401
21305 verbose pkgid @fortawesome/[email protected]
21306 verbose cwd E:\Study\DMS\showdoc-3.3.0\web_src
21307 verbose Windows_NT 10.0.22631
21308 verbose argv "E:\\Program Files (x86)\\nodeJs\\node.exe" "E:\\Program Files (x86)\\nodeJs\\node_modules\\npm\\bin\\npm-cli.js" "install"
21309 verbose node v14.17.0
21310 verbose npm  v6.14.13
21311 error code E401
21312 error Unable to authenticate, need: Basic realm="https://npm.fontawesome.com/",service="npm.fontawesome.com"

showdoc-3.3.0版本,node版本:V14.17.0,请各位大佬指导一下,谢谢!

@star7th
Copy link
Owner

star7th commented Nov 18, 2024

showdoc用到了 fontawesome.com 的付费图标库。
这个文件 https://github.com/star7th/showdoc/blob/master/web_src/.npmrc 记录了付费凭证 _authToken 。它过期了。
哎,我懒得花钱买了。现在我都是基于本地缓存的npm开发。不是很想花那个钱了。你不介意的话上网找下有没有付费凭证用一下。就替换上面那个文件里的_authToken

@luckTechnology
Copy link

是否有可能分享一下缓存的fontawesome包呢

@star7th
Copy link
Owner

star7th commented Nov 18, 2024

应该分享不了吧,它自己也会有上层依赖。

@luckTechnology
Copy link

showdoc用到了 fontawesome.com 的付费图标库。 这个文件 https://github.com/star7th/showdoc/blob/master/web_src/.npmrc 记录了付费凭证 _authToken 。它过期了。 哎,我懒得花钱买了。现在我都是基于本地缓存的npm开发。不是很想花那个钱了。你不介意的话上网找下有没有付费凭证用一下。就替换上面那个文件里的_authToken

搜了一圈,貌似并没有authtoken分享。只能99刀买一个fontawesome pro?

@luckTechnology
Copy link

showdoc用到了 fontawesome.com 的付费图标库。 这个文件 https://github.com/star7th/showdoc/blob/master/web_src/.npmrc 记录了付费凭证 _authToken 。它过期了。 哎,我懒得花钱买了。现在我都是基于本地缓存的npm开发。不是很想花那个钱了。你不介意的话上网找下有没有付费凭证用一下。就替换上面那个文件里的_authToken

搜了一圈,貌似并没有authtoken分享。只能99刀买一个fontawesome pro?

没有fontawesome authtoken的话。项目就跑不起来了~

@OYF0910
Copy link
Author

OYF0910 commented Nov 19, 2024

是的,我也没有找到,还有没有其它办法?

@fanhuayishiy
Copy link

有办法吗,或者可以换图标库不

@star7th
Copy link
Owner

star7th commented Nov 26, 2024

换图标库不现实。因为用得挺多的。
也是设计师推荐过我才知道,用付费图标,整体UI比免费图标真的提升了一个档次。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants