Issues with YARN and NPM

Hello, I have been using Linux for a short time. and i am having a problem with npm and YARN neither let me install dependencies in my projects

when I try with NPM it just keeps loading infinitely and doesn’t download anything until it ends up giving me ETIMEDOUT

and YARN the same thing happens starts at
“Resolving Packages”
and then start with
“info There appears to be trouble with your network connection. Retrying…”
until I get an error
“error An unexpected error occurred: “ ETIMEDOUT”.”
and it returned me this error log
/usr/bin/node /usr/bin/yarn install


Yarn version:

Node version:

linux x64

at Timeout._onTimeout (/usr/lib/node_modules/yarn/lib/cli.js:141543:19)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)

npm manifest:
“name”: “patitas”,
“private”: true,
“version”: “0.0.0”,
“scripts”: {
“dev”: “vite”,
“build”: “vite build”,
“preview”: “vite preview”
“dependencies”: {
“autoprefixer”: “^10.4.7”,
“postcss”: “^8.4.13”,
“react”: “18.0.0”,
“react-dom”: “18.0.0”,
“tailwindcss”: “^3.0.24”
“devDependencies”: {
@types/react”: “18.0.0”,
@types/react-dom”: “18.0.0”,
@vitejs/plugin-react”: “1.3.0”,
“vite”: “2.9.7”

yarn manifest:
No manifest

No lockfile

It is an issue resolving - not a general network issue and as such you will have to troubleshoot why you cannot reach the endpoint.

Try doing some basic troubleshooting using below guide

For no reason the problem was solved, I had started with the guide you sent, run the first command and thought I’d try again to download the dependencies before starting and it did without a problem