Javascript npm错误!代码错误\u套接字\u超时npm错误!errno ERR\u套接字\u超时

Javascript npm错误!代码错误\u套接字\u超时npm错误!errno ERR\u套接字\u超时,javascript,node.js,reactjs,react-native,npm,Javascript,Node.js,Reactjs,React Native,Npm,我试过sudo npm更新npm-g, npm缓存清理--强制 仍然显示此错误 Creating a new React app in /home/abhijith/Desktop/React/firstReact/myapp. Installing packages. This might take a couple of minutes. Installing react, react-dom, and react-scripts with cra-template... npm ERR

我试过sudo npm更新npm-g, npm缓存清理--强制

仍然显示此错误

Creating a new React app in /home/abhijith/Desktop/React/firstReact/myapp.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! errno ERR_SOCKET_TIMEOUT
npm ERR! request to https://registry.npmjs.org/find-cache-dir failed, reason: Socket timeout

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/abhijith/.npm/_logs/2021-04-08T17_06_38_087Z-debug.log

Aborting installation.
  npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.

Deleting generated file... package.json
Deleting myapp/ from /home/abhijith/Desktop/React/firstReact
Done.