Closed stone-jin closed 4 years ago
time npm i -g @midwayjs/faas-cli --registry=https://registry.npm.taobao.org --loglevel info
added 1541 packages from 1486 contributors in 81.05s
real 1m25.524s
user 0m0.015s
sys 0m0.182s
是比较慢(先执行了一次,中途退出,有部分的本地cache)
可以看出来最大的依赖是:@alicloud/fun、midway-bin(egg-bin),把这两个移除掉依赖就会少很多
use taobao npm
npm i -g @midwayjs/faas-cli --registry=https://registry.npm.taobao.org
added 1709 packages from 1555 contributors in 81.183s 394M node_modules
remove
midway-bin
added 875 packages from 1039 contributors in 51.884s (-37%) 238M node_modules (-40%)
npm i -g @midwayjs/faas-cli --registry=https://registry.npm.taobao.org
耗费88s