创建应用程序时出现纱线错误

时间:2020-07-11 08:47:02

标签: reactjs yarnpkg

while running create-react-app command on command prompt using yarn

info“ fsevents@2.1.2”是可选的依赖项,并且兼容性检查失败。 从安装中排除它。 错误发生意外错误:“ EPERM:不允许操作,取消链接'D:
\ my-app \ node_modules \ @babel \ compat-data \ node_modules \ .bin'“。

info If you think this is a bug, please open a bug report with the information p
rovided in "D:\\my-app\\yarn-error.log".

info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this comm
and.

`yarnpkg add @testing-library/react@^9.3.2 @testing-library/jest-dom@^4.2.4 @tes
ting-library/user-event@^7.1.2` failed

D:\>

1 个答案:

答案 0 :(得分:0)

如果要创建git存储库以进行版本控制或发布到类似GitHub的站点,则需要install git,然后再运行create-react-app。否则,您可以忽略它,并在没有git的情况下使用samples目录中的应用程序。

相关问题