How to clear cache in Yarn?
问题 I am doing some benchmark tests for Facebook's Yarn. For this, I need to clear my global Yarn cache. Is there a command available for this? I have force-removed my ~/.yarn-cache folder, but this seems to be quite manual. 回答1: Ok I found out the answer myself. Much like npm cache clean , Yarn also has its own yarn cache clean 回答2: Just run yarn cache clean . Run yarn help cache in your bash, and you will see: Usage: yarn cache [ls|clean] [flags] Options: -h, --help output usage information -V,