XXXdeMacBook-Pro ~ % npm install -g nrm
npm ERR! code ETIMEDOUT
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to http://10.106.161.233:14873/nrm failed, reason: connect ETIMEDOUT 10.106.161.233:14873
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! XXX/.npm/_logs/2022-05-04T15_24_32_912Z-debug.log
国内代理问题:
执行:npm config set registry https://registry.npm.taobao.org
再执行:npm install -g nrm
安装成功: