-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot create property '_registry' on string 'yarn' #5992
Comments
This seems to be a duplicate of #4618, but their issue hasn't been resolved yet :\ |
hi @mcrowder65 installation of yarn via npm is generally not recommended, would you be able to uninstall it and reinstall using one of the approaches here? https://yarnpkg.com/en/docs/install#mac-stable |
Thank you for the response @kaylieEB, I followed the instructions that you gave, I ensured that yarn was not installed my system by doing
Here is my yarn-error.log
|
Did some more digging, it looks like it could be a corrupted configuration file like in this issue #3049. Can you check with |
Thank you for the response! Unfortunately, I have a .npmrc file and it contains a
|
I just ran across this issue and noticed the problem was actually a corrupt package.json file several directories above the project directory I was using yarn in. Since yarn walks up the tree and locates all the In my situation it was because a process was bumping the version in the package.json and writing a malformed package.json back to a folder one parent above. |
This issue is similar to my #8469 resolved my issue by removing the |
Do you want to request a feature or report a bug?
Report a bug
What is the current behavior?
I installed yarn like so:
npm install -g yarn
Whenever I do anything with yarn, it gives me back:
error An unexpected error occurred: "Cannot create property '_registry' on string 'yarn'".
If the current behavior is a bug, please provide the steps to reproduce.
Doing anything with yarn.
typing just
yarn
,yarn init
, etc.What is the expected behavior?
That yarn will work.
Please mention your node.js, yarn and operating system version.
Node.js - 8.9.4
yarn - 1.7.0 (doing
yarn -v
actually works)Operating System Version: macOS High Sierra Version 10.13.4
Here is my
yarn-error.log
file.The text was updated successfully, but these errors were encountered: