We’ve been looking at using Yarn instead of npm for our project because of it’s speed improvements. When running
yarn install locally, it is faster at installing dependencies. Circle CI has been set up to use yarn as well, but we are seeing significant slowdowns in build time and large increase in console output whilst installing the dependencies.
Circle CI seems to run a console log for each update of the progress bar. I’m not sure if this is causing the slowdown but it’s something that would be good to get sorted either way.
I looked at this tutorial, and our package.json now looks like this:
dependencies: pre: - curl -o- -L https://yarnpkg.com/install.sh | bash cache_directories: - ~/.yarn-cache override: - yarn install machine: pre: - mkdir ~/.yarn-cache node: version: 6.2.2 test: pre: - ./node_modules/.bin/eslint '**/*.js' '**/*.jsx' override: - yarn test
Here is a screenshot of the console output for yarn install:
Any help you can provide is much appreciated!