安装node之后,以为npm虽然下载慢一点,可是还能接受,就没有安装cnpm。直达本身从github clone了几个开源程序,发现npm install失败了。报错npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/@nodelib%2ffs.stat
, reason: connect ETIMEDOUT 104.16.20.35:443
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
gs.
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'node
错误这么多,可是问题在于须要使用cnpmgit
执行npm install -g cnpm --registry=https://registry.npm.taobao.orggithub
再执行cnmp installnpm
就ok了code