how to solve this error while installing mongodb - node.js

Facing this error while installing mongodb
npm ERR! network request to https://registry.npmjs.org/mongodb failed, reason: connect ETIMEDOUT 104.16.17.35:443
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\91785\AppData\Roaming\npm-cache\_logs\2022-05-02T04_35_42_682Z-debug.log

Related

I'm trying to open a new project for the first time in React and I installed node.js and I get this error:

C:\Users\user\Desktop\נעמי תכנות\react\app_nomy>npx create-react-app app_nomy
npm ERR! code ETIMEDOUT
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/create-react-app failed, reason: connect ETIMEDOUT 2606:4700::6810:1123:443
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\user\AppData\Local\npm-cache_logs\2022-12-17T19_17_13_700Z-debug-0.log
I have tried all kinds of operations of deleting the proxy and resetting it and nothing helps me. I would really appreciate it if someone could go through it step by step with me and try to help me

npm ERR! network 'proxy' config is set properly. See: 'npm help config'

I was trying to create an app through ng new my-app and had this error several times.
How can I fix that?
npm ERR! errno ERR_SOCKET_TIMEOUT
npm ERR! network Invalid response body while trying to fetch https://registry.npmjs.org/browserslist: 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! /root/.npm/_logs/2022-01-22T20_05_16_466Z-debug-0.log
✖ Package install failed, see above.
The Schematic workflow failed. See above.

no_proxy node configuration is not working while running junkins job

I am getting below error while deploying my project
+ npm install -g #angular/cli
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! network request to https://nexus.in.abc.com/repository/npmregistry/#angular%2fcli failed, reason: read ECONNRESET
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'
Bypass the proxy configuration using the below command in jenkins script
npm config set no_proxy https://nexus.in.abc.com
Please help.

NPM does not allow installation of any packages like react

I have been trying to install react on my PC. The problem is that it always shows the following error:
D:\React JS>npm install react
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/react failed, reason getaddrinfo ENOTFOUND host
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\Idea1\AppData\Roaming\npm-cache\_logs\2020-04-16T12_57_52_202Z-debug.log
This is the issue, when I tried installing react or any other package.
try:
npm config delete proxy
then install command

I have a issue with npm proxy

I have a problem with proxy services when i need to install any package i get this error:
```
C:\Users\ihab\Desktop\myApp\myApp>npm install -g npm#latest
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to http://registry.npmjs.org/npm failed, reason: getadd
rinfo ENOTFOUND proxy_host proxy_host:80
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 settin
gs.
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\ihab\AppData\Roaming\npm-cache_logs\2017-11-15T13_49_08_4
73Z-debug.log
C:\Users\ihab\Desktop\myApp\myApp>npm --registry http://registry.cnpmjs.org info
underscore
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! network getaddrinfo ENOTFOUND proxy_host proxy_host:80
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 settin
gs.
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\ihab\AppData\Roaming\npm-cache_logs\2017-11-15T13_51_14_6
81Z-debug.log
```
any solution for this problem please
If there is any proxy issue ask your network team what proxy url they have set . And then set proxy for npm
windows .
npm config set proxy http://username:password#url-of-proxy
npm config set https-proxy http://username:password#url-of-proxy

Resources