Skip to content

Instantly share code, notes, and snippets.

@dtran320
Last active October 13, 2016 00:15
Show Gist options
  • Save dtran320/c639fe561de89d5b9a895b677d135acc to your computer and use it in GitHub Desktop.
Save dtran320/c639fe561de89d5b9a895b677d135acc to your computer and use it in GitHub Desktop.
Yarn on CircleCI
dependencies:
pre:
- curl -o- -L https://yarnpkg.com/install.sh | bash
override:
- yarn
post: # At least for me, it doesn't seem like `scripts` in `package.json` are being run, so you need to add them explicitly
- yarn run postinstall
@dtran320
Copy link
Author

If you were getting the following error, it's because I was using the Mac/Generic Linux installation script, which seems to assume the BSD version of tar rather than the GNU version:

> Extracting to ~/.yarn...
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'

On common Linux distributions such as Debian, Ubuntu and CentOS, it is recommended to install Yarn via our packages instead.

https://yarnpkg.com/en/docs/install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment