简体   繁体   English

为什么我无法在 npm 中安装某些软件包?

[英]Why I am not able to install some packages in npm?

I'm using npm andI noticed that it's not always possible to install packages.我正在使用 npm 并且我注意到并不总是可以安装软件包。 For ex I'm able to instal jquery using regular npm command npm install jquery but I'm not able to install webpack-watch-server using command npm i webpack-watch-server besause of an error例如,我可以使用常规 npm 命令npm install jquery但由于出现错误,我无法使用命令npm i webpack-watch-server安装webpack-watch-server

npm ERR! network request to http://registry.npmjs.org/homedir-polyfill failed, reason: read ECONNRESET

What does it mean?这是什么意思? Does some dependencies of the package which I want to install are not available anymore or should I reconfigure npm?我要安装的软件包的某些依赖项是否不再可用,还是应该重新配置 npm?

I solved my problem by installing dependencies with npm ERR!我通过使用 npm ERR 安装依赖项解决了我的问题! status manually: first I install homedir-polyfill separately and then again webpack-watch-server手动状态:首先我单独安装homedir-polyfill webpack-watch-server ,然后再次安装webpack-watch-server

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM