简体   繁体   English

每当我运行 npm install --force 时,我都会遇到这个错误

[英]Anytime I run npm install --force, I face this error

Am having this error when running npm i --force, npm i don't even run, it shows bunch of errors运行 npm i --force 时出现此错误,npm 我什至没有运行,它显示一堆错误

npm ERR! code ECONNRESET

npm ERR! npm 错误! errno ECONNRESET npm ERR! errno ECONNRESET npm 错误! network Invalid response body while trying to fetch https://registry.npmjs.org/react-hook-form : aborted npm ERR.网络尝试获取https://registry.npmjs.org/react-hook-form时响应正文无效:中止 npm ERR。 network This is a problem related to network connectivity.网络 这是与网络连接有关的问题。 npm ERR, network In most cases you are behind a proxy or have bad network settings. npm ERR,网络 在大多数情况下,您使用代理服务器或网络设置错误。 npm ERR: network npm ERR! npm ERR:网络 npm ERR! network If you are behind a proxy, please make sure that the npm ERR!网络 如果您在代理后面,请确保 npm ERR! network 'proxy' config is set properly.网络“代理”配置设置正确。 See: 'npm help config'请参阅:'npm 帮助配置'

npm ERR: A complete log of this run can be found in. npm ERR. npm ERR:此运行的完整日志可在 npm ERR 中找到。 /home/heiscostly/.npm/_logs/2021-05-11T06_27_03_886Z-debug.log /home/heiscostly/.npm/_logs/2021-05-11T06_27_03_886Z-debug.log

The error itself explains that there is some issue with network connectivity.该错误本身说明网络连接存在一些问题。
Below mentioned questions will help you troubleshoot the issue下面提到的问题将帮助您解决问题

  • Does this happen only for react-hook-form or it happens for all the packages?这只发生在react-hook-form上还是发生在所有包上?
  • Does installation work without the --force parameter?如果没有--force参数,安装是否有效?
  • Are you using the latest npm version?您使用的是最新的npm版本吗? You can check using npm -v .您可以使用npm -v检查。
  • Execute curl https://registry.npmjs.org/react-hook-form to check whether your computer can access the page.执行curl https://registry.npmjs.org/react-hook-form检查你的电脑是否可以访问该页面。 (If you can't or curl fails then there is a problem with your computer settings, not npm ) (如果你不能或curl失败,那么你的计算机设置有问题,而不是npm

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

相关问题 每当我尝试在 Visual Studio 代码上运行“npm install”时出现错误 - I get an error whenever i try to run "npm install" on visual studio code 当我运行“npm install”时,我的终端上出现此错误消息“npm ERR。Linux 5.4.72-microsoft-standard-WSL2” - I have this error message "npm ERR! Linux 5.4.72-microsoft-standard-WSL2" on my terminal when I run "npm install" 运行 npm install 时出错 Error: 404 Not Found: 7zip-bin@~4.1.0 - Error when I run npm install Error: 404 Not Found: 7zip-bin@~4.1.0 我想安装 npm 但它会出错 - i want install npm but it will give error 如何在 npm install 中克服这个错误? - How can I ovecome this error in npm install? 我正在尝试在可视代码中运行命令 npm install 但它向我显示了这个错误 - i am trying to run the command npm install in visual code but it is showing me this error 当我尝试安装材质 ui 图标依赖项时遇到此错误 - When I try to install material ui icon dependency face this error 我遇到了 npm 问题,当我运行“npm install”时我不明白 - I am having npm issues I do not understand when I run `npm install` 即使我以root身份运行,在npm安装过程中权限也被拒绝 - Permission denied during npm install even though I run it as root 当我运行npm run start时出现此错误 - When I run npm run start I get this error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM