Yarn set version stable 命令错误

运行命令的时候提示错误:

PS D:\WorkDir\Repository\iSharkfly-Docs\Docs\docs-isharkfly-com> yarn set version stable
Resolving stable to a url...
error An unexpected error occurred: "Release not found: stable".
info If you think this is a bug, please open a bug report with the information provided in "D:\\WorkDir\\Repository\\iSharkfly-Docs\\Docs\\docs-isharkfly-com\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/policies for documentation about this command.

错误原因

出现上面错误的原因可能是你的项目中已经存在了 node_modules 目录。

可以删除这个文件夹后再尝试。

1 Like