• 0

error An unexpected error occurred: "package.json: Name contains illegal characters".


Have you received below error while doing yarn install?
yarn install v1.5.1
error An unexpected error occurred: "package.json: Name contains illegal characters".
info If you think this is a bug, please open a bug report with the information provided in "/Users/kashah/code/torq-native/TestFrameWork/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Solution:

  • In your package.json, "name" should be all small characters, without any special characters.
Read "name" for all the naming conventions.