Tag Archives: Package Install Error

[Solved] Package Install Error: npm ERR code ERR_SOCKET_TIMEOUT npm ERR

Error reporting solution


npm ERR! code ERR_SOCKET_TIMEOUT 
npm ERR! errno ERR_SOCKET_TIMEOUT
npm ERR! network Invalid response body while trying to fetch https://registry.npmjs.org/node-releases: Socket timeout
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! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\rain\AppData\Local\npm-cache\_logs\2022-02-28T07_09_06_205Z-debug-0.log 

Today, when installing the webpack package, I found the following problems:

First step operation

npm install webpack webpack-cli --global

Perform step 2 after reporting an error

npm install rxjs

Perform the third step

npm install webpack webpack-cli --global

npm run dev successfully: %s