Closed aduh95 closed 2 months ago
no idea how it got there
That's an issue we sometimes have with yarnPath
as well. Perhaps we should make corepack use
fail if run in the home directory, unless a special CLI flag is set (like rm --no-preserve-root
)?
I had to help someone who couldn't understand why they were getting this error message on an empty directory; turned out they had a
package.json
in their home directory (no idea how it got there) that defined apackageManager
field. I think adding some explanation would help.