首页 > npm 使用出错

npm 使用出错

npm ERR! fetch failed https://registry.npmjs.org/find-index/-/find-index-0.1.1.tgz

npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT

npm ERR! fetch failed https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz

npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT

npm ERR! fetch failed https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz

npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT

npm ERR! fetch failed https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz

npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT

npm ERR! fetch failed https://registry.npmjs.org/signal-exit/-/signal-exit-2.1.2.tgz

npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT

npm ERR! fetch failed https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.1.tgz

npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT

npm ERR! fetch failed https://registry.npmjs.org/globule/-/globule-0.1.0.tgz

npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT

npm ERR! fetch failed https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.1.4.tgz

npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT

npm ERR! fetch failed https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz

npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT

切换镜像地址,或者使用nrm镜像管理器


试试cnpm把,比npm快多了。


试试配成淘宝镜像:

npm config set registry https://registry.npm.taobao.org

然后再重复你刚才出错的命令试试

【热门文章】
【热门文章】