By using yarn install, yarn can cache all the dependencies. This will increase the speed by the build.