Using the command recommended by the docs:
> yarn add @babel/preset-react --dev
yarn add v1.17.3
[1/5] ? Validating package.json...
[2/5] ? Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@babel%2freact: Not found".
According to the docs you can add git repo directly:
> yarn add https://github.com/babel/babel/tree/master/packages/babel-preset-react --dev
yarn add v1.17.3
[1/5] ? Validating package.json...
[2/5] ? Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@babel%2freact: Not found".