[英]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下面提到的问题将帮助您解决问题
react-hook-form
or it happens for all the packages?react-hook-form
上还是发生在所有包上?--force
parameter?--force
参数,安装是否有效?npm
version?npm
版本吗? You can check using npm -v
.npm -v
检查。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.