纱线添加babel /预设反应失败

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".
c363121143 回答:纱线添加babel /预设反应失败

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3059024.html

大家都在问