You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I ran yarn config set cache-folder by mistake, the cache-folder was set true, and almost any command of yarn crashed.
> yarn config set cache-folder
yarn config v1.22.21
warning package.json: No license field
success Set "cache-folder" to true.
Done in0.68s.
> yarn cache dir
TypeError [ERR_INVALID_ARG_TYPE]: The "paths[1]" argument must be of type string. Received type boolean (true)
> yarn cache clean
TypeError [ERR_INVALID_ARG_TYPE]: The "paths[1]" argument must be of type string. Received type boolean (true)
> yarn
TypeError [ERR_INVALID_ARG_TYPE]: The "paths[1]" argument must be of type string. Received type boolean (true)
I got yarn back to normal by editing cache-folder in the .yarnrc file, but I think it could be better to return an error when such commands yarn config set cache-folder were typed.
Self-service
Describe the bug
After I ran
yarn config set cache-folder
by mistake, the cache-folder was settrue
, and almost any command of yarn crashed.To reproduce
run
yarn config set cache-folder
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: