Always says ‘error An unexpected error occurred: “Unknown token 1056:1”.’

I’m using the latest version (v0.20.3) of yarn.

bug

Every yarn command leads to error: error An unexpected error occurred: "Unknown token 1056:1. Even yarn and yarn -v log this error.

image

I’ve tried to uninstall and reinstall yarn, but the problem exists still.

Node version: v7.4.0

OS: macOS Sierra 10.12.1

Author: Fantashit

2 thoughts on “Always says ‘error An unexpected error occurred: “Unknown token 1056:1”.’

  1. This is most likely an error in your yarn.lock.
    Try deleting it and running yarn install again
    If this doesn’t solve the issue, check the output written in the file yarn-error.log as advised by the CLI

  2. For anyone, if the above does’nt solve the issue, just delete the .yarnrc file (C://Users/my_name/.yarnrc).
    Then, come back in your project directory, and run “yarn install” again, or whatever yarn command.
    Enjoy! 🙂

Comments are closed.