'Yarn install, not able to install all dependencies in my project

I cloned a project from gitlab and tried to install the dependencies using yarn install command. But there are few dependencies yarn is not able to install. It is showing this message info There appears to be trouble with your network connection. Retrying...

I tried to install using npm but couldn't do with that even. deleted package.lock.json, didn't work

It is a next.js based project

Here is the console snap enter image description here



Solution 1:[1]

try disabling proxy/firewall and try again

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Pranav Purwar