i am also having the same issue where the npm is unable to install any of library or unable to create-react-app using npx.Even i am not connected to any proxy i.e. i am connected to my personal mobile wifi, why does this is happening with me.
here is the snippet::
C:UsersAsus>npm install - g npm@latest
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to http://registry.npmjs.org/npm failed, reason:
npm ERR! at ClientRequest. (C:Program Files
odejs
ode_modules
pm
ode_modulesminipass-fetchlibindex.js:130:14)
npm ERR! at ClientRequest.emit (node:events:518:28)
npm ERR! at _destroy (node:_http_client:875:13)
npm ERR! at onSocketNT (node:_http_client:895:5)
npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
npm ERR! FetchError: request to http://registry.npmjs.org/npm failed, reason:
npm ERR! at ClientRequest. (C:Program Files
odejs
ode_modules
pm
ode_modulesminipass-fetchlibindex.js:130:14)
npm ERR! at ClientRequest.emit (node:events:518:28)
npm ERR! at _destroy (node:_http_client:875:13)
npm ERR! at onSocketNT (node:_http_client:895:5)
npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm ERR! code: ECONNREFUSED ,
npm ERR! errno: ECONNREFUSED ,
npm ERR! type: system
npm ERR! }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! proxy config is set properly. See: npm help config
npm ERR! A complete log of this run can be found in: C:UsersAsusAppDataLocal
pm-cache_logs2024-02-18T02_50_20_203Z-debug-0.log