使用 npm install的时候一直报错,按照权限啥的试了试还不行,有没有同志知道这是啥问题

问题遇到的现象和发生背景

Ubuntu系统下使用cnpm install的时候一直报错,改npm的版本也没有啥用

问题相关代码,请勿粘贴截

cnpm install

运行结果及报错内容

headers: {}, status: -1, headers: {}
[npminstall:get] retry GET https://registry.npmmirror.com/husky after 400ms, retry left 1, Error [ERR_SOCKET_CLOSED]: Socket is closed, GET https://registry.npmmirror.com/husky -1 (connected: false, keepalive socket: false, agent status: {"createSocketCount":117,"createSocketErrorCount":0,"closeSocketCount":112,"errorSocketCount":231,"timeoutSocketCount":0,"requestCount":2,"freeSockets":{"registry.npmmirror.com:443::::::::::::::::::":1},"sockets":{"registry.npmmirror.com:443::::::::false:::::::::134217728:":4},"requests":{}}, socketHandledRequests: 1, socketHandledResponses: 0)
headers: {}, status: -1, headers: {}
✖ Install fail! Error [ERR_SOCKET_CLOSED]: Socket is closed, GET https://registry.npmmirror.com/@types%2Fcors@types%2Fcors -1 (connected: false, keepalive socket: false, agent status: {"createSocketCount":120,"createSocketErrorCount":0,"closeSocketCount":116,"errorSocketCount":233,"timeoutSocketCount":0,"requestCount":2,"freeSockets":{"registry.npmmirror.com:443::::::::::::::::::":1},"sockets":{"registry.npmmirror.com:443::::::::false:::::::::134217728:":3},"requests":{}}, socketHandledRequests: 1, socketHandledResponses: 0)
headers: {}
Error [ERR_SOCKET_CLOSED]: Socket is closed
at TLSSocket.Socket._writeGeneric (net.js:704:18)
at TLSSocket.connect (net.js:696:12)
at Object.onceWrapper (events.js:286:20)
at TLSSocket.emit (events.js:203:15)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1093:10)
npminstall version: 5.8.0
npminstall args: /usr/bin/node /usr/local/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js --fix-bug-versions --china --userconfig=/root/.cnpmrc --disturl=https://npmmirror.com/mirrors/node --registry=https://registry.npmmirror.com/

我的解答思路和尝试过的方法
我想要达到的效果

想把这个从gitee上下载的项目运行起来

百度下’npm淘宝镜像‘

npm install cnpm -g --registry=https://registry.npm.taobao.org/