Can't install bs-platform@4.0.18


#1

Hello!
Iโ€™m in China, Iโ€™m trying to install bs-platform and reason by:
yarn add --dev bs-platform

and fail as following:

[1/4] ๐Ÿ”  Resolving packages...
[2/4] ๐Ÿšš  Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/bs-platform/-/bs-platform-4.0.18.tgz: ESOCKETTIMEDOUT".
info If you think this is a bug, please open a bug report with the information provided in "/Users/y/Github/Wonder-CommonLib/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

โ€œyarn global add bs-platformโ€ also fail!!!

I have install bs-platform@4.0.0 and reason@3.2.0 successfully before.

Could anyone help me? Thanks a lot!


#2

Could you use cnpm? It seems to have the latest: https://cnpmjs.org/package/bs-platform

EDIT: err, or rather Taobao https://npm.taobao.org/package/bs-platform


#3

Thanks for your reply~

I solved this problem by use cyarn:

npm install -g cyarn --registry=https://registry.npm.taobao.org

ใ€ŒCYarnใ€ไฝฟ็”จ cnpm ๆบ็š„ Yarn