npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ETIMEDOUT: request to https://registry.npmjs.org/@babel%2fparser failed, reason: connect ETIMEDOUT 104.16.20.35:443
npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/@babel%2fplugin-syntax-export-namespace-from failed, 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 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 config set proxy null ,然后在执行npm install
第二种情况:可以安装淘宝镜像,通过镜像安装依赖,npm install -g cnpm 然后 cnpm install
本人试了以上两种方法都未成功,看了一些帖子上说的出现这种情况的主要原因,最主要就是网络差的原因,然后我用自己手机的热点一次性成功了,如果你也遇到这种情况换一个网速好的网试试应该就可以了!