nodejs安装时你配吗install报错

安装nodejs之后,在cmd里node -v没问题,npm -v 也没问题,然后不管是npm install -g cnpm --registry=https://registry.npm.taobao.org,还是cnpm install vue-cli -g全部报错,错误如下:

C:\Windows\system32>npm install -g cnpm --registry=


npm ERR! code ERR_SOCKET_BAD_PORT
npm ERR! errno ERR_SOCKET_BAD_PORT
npm ERR! request to
https://registry.npm.taobao.org/cnpm
failed, reason: Port should be >= 0 and < 65536. Received 80880.

npm ERR! A complete log of this run can be found in:
npm ERR! e:\php\nodejs\node_cache_logs\2021-10-09T02_35_34_891Z-debug.log

C:\Windows\system32>

实在不知道怎么解决了

看着像node版本的问题 如果使用的是低版本的node 可以装个新版本的node 删掉node_modules 重新安装一下