Yarn: Always says 'error An unexpected error occurred: "Unknown token 1056:1".'

Created on 20 Feb 2017  路  2Comments  路  Source: yarnpkg/yarn

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

Most helpful comment

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

All 2 comments

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

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! :)

Was this page helpful?
0 / 5 - 0 ratings