尝试通过NPM I Axios在React项目上安装Axios

发布于 2025-02-13 18:20:17 字数 722 浏览 0 评论 0原文

当我运行npm I Axios时,我会收到以下错误:

C:\ Users \ Mary \ star-wars> npm I Axios npm err!代码E404 npm err! 404找不到-get https:/ /registry/axios/-/axios-0.27.2.tgz - not_found npm err! 404 npm err! 404'Axios@https://skimdb.npmjs.com/registry/axios/-/axios-/axios-0.27.2.tgz'不在此注册表中。 npm err! 404 npm err! 404请注意,您也可以从 npm err! 404 TARBALL,文件夹,HTTP URL或GIT URL。

npm err!可以在以下方式中找到此运行的完整日志 npm err! c:\ user \ mary \ appdata \ local \ npm-cache_logs \ 2022-07-07-07T14_23_23_38_747Z-debug-0.log

我能找到任何对我有用的东西统一Axios并在没有成功的情况下重新安装它。 我检查了日志&它包含在我运行命令时显示的相同错误。 有人找到了解决方案吗?

When I run npm i axios I get the following errors:

C:\Users\Mary\star-wars>npm i axios
npm ERR! code E404
npm ERR! 404 Not Found - GET https://skimdb.npmjs.com/registry/axios/-/axios-0.27.2.tgz - not_found
npm ERR! 404
npm ERR! 404 'axios@https://skimdb.npmjs.com/registry/axios/-/axios-0.27.2.tgz' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Mary\AppData\Local\npm-cache_logs\2022-07-07T14_23_38_747Z-debug-0.log

I can´t find anything that works for me, I´ve tried to reinstall dependencies, I´ve tried to unistall axios and re-install it without success.
I´ve checked the log & it contains the same error that shows when I run the command.
Has anyone found a solution for this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ま昔日黯然 2025-02-20 18:20:19

我终于能够通过将其运行为管理员来完成我的意图,创建另一个文件夹,运行NPM CACH CACH CLEAN -F和设置NPM。注册表
之后,一切顺利。

I was finally able to do what I intended by running it as Admin, creating a different folder, running npm cache clean -f and setting npm. registry
After that, everything went smooth.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文