尝试通过NPM I Axios在React项目上安装Axios
当我运行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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我终于能够通过将其运行为管理员来完成我的意图,创建另一个文件夹,运行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.