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: “https://registry.yarnpkg.com/autoprefixer: ETIMEDOUT”.”
and it returned me this error log
Arguments:
/usr/bin/node /usr/bin/yarn install
PATH:
/home/spartan2502/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin
Yarn version:
1.22.18
Node version:
17.8.0
Platform:
linux x64
Trace:
Error: https://registry.yarnpkg.com/autoprefixer: ETIMEDOUT
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
Lockfile:
No lockfile