why am getting this npm ERR! code ENOTFOUND - node.js

I am new in React and I'm trying to create a React app using the VS Code terminal
This the command that I am trying to run:
npx create-react-app my-app
This is the error I am getting:
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/babel-jest failed, reason: connect ETIMEDOUT 104.16.20.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! A complete log of this run can be found in:
npm ERR! C:\Users\hp\AppData\Roaming\npm-cache\_logs\2021-09-16T07_54_37_069Z-debug.log
Please what should I do?

Related

npm ERR! syscall getaddrinfo

When I try to set up my react app, I got a error as shown below
Here are the Error i got when I run npx create-react-app react-app
any help please!
PS C:\Users\pc\Documents\ReactApps\react-app> npx create-react-app react-app
npm ERR! code ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! errno ENOTFOUND
npm ERR! network request to http://registry.npmjs.org/create-react-app failed, reason: getaddrinfo ENOTFOUND xxx.xxx.xxx.4
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\pc\AppData\Local\npm-cache\_logs\2023-01-22T00_17_29_902Z-debug-0.log
I've tried a lot of commands but they are still useless, and I don't know how to figure it out
before I had some problems similar to this in my react project and I couldn't find a solution so I deleted all the folders, and now here are the problems

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

how to solve this error while installing mongodb

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

An error Occur while creating next app by cmd

D:\Lerning next.js>npx create-next-app ak
Creating a new Next.js app in D:\Lerning next.js\ak.
Installing react, react-dom, and next using npm...
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! network Invalid response body while trying to fetch https://registry.npmjs.org/next: aborted
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\Ashish\AppData\Local\npm-cache_logs\2021-05-17T18_44_47_565Z-debug.log
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom next has failed.`

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

Resources