【Exception】yarn install :"https://registry.yarnpkg.com/@angular%2frouter: ESOCKETTIMEDOUT"

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

异常

yarn install

yarn install v0.27.5

info No lockfile found.

[1/4] Resolving packages...

warning There appears to be trouble with your network connection. Retrying...

warning There appears to be trouble with your network connection. Retrying...

warning generator-jhipster > [email protected]: Please upgrade to Chalk 2.1.0 - template literals in this version (2.0.1) are quite buggy.

warning There appears to be trouble with your network connection. Retrying...

warning There appears to be trouble with your network connection. Retrying...

warning browser-sync > browser-sync-ui > weinre > [email protected]: express 2.x series is deprecated

warning browser-sync > browser-sync-ui > weinre > express > [email protected]: connect 1.x series is deprecated

warning There appears to be trouble with your network connection. Retrying...

warning There appears to be trouble with your network connection. Retrying...

warning browser-sync > localtunnel > request > [email protected]: Use uuid module instead

warning There appears to be trouble with your network connection. Retrying...

warning There appears to be trouble with your network connection. Retrying...

warning There appears to be trouble with your network connection. Retrying...

error An unexpected error occurred: "https://registry.yarnpkg.com/@angular%2frouter: ESOCKETTIMEDOUT".

解决

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

转载于:https://my.oschina.net/u/199525/blog/1524209

你可能感兴趣的:(【Exception】yarn install :"https://registry.yarnpkg.com/@angular%2frouter: ESOCKETTIMEDOUT")