How to install npm init packages with yarn?

recently, when I was learning yarn to copy the previous npm package.json package, I typed yarn install and then reported the following error. How to solve this problem?

info There appears to be trouble with your network connection. Retrying

May.22,2021

the error report is your network connection problem. Check your network condition to see if there is anything wrong with the agent.

Menu