4

我使用react-slingshot链接)作为我的入门工具包(create-react-app用作基础)。npm start最近,在我的项目上运行脚本时出现错误日志。我对 github 和 stack over flow 进行了一些研究,但似乎这些错误很少见。

Error from chokidar (D:\projects\product-travel-ui\node_modules\date-fns\esm_lib\assign): Error:
UNKNOWN: unknown error, watch
Error from chokidar (D:\projects\product-travel-ui\node_modules\date-fns\esm_lib\getUTCISOWeekYear):
Error: UNKNOWN: unknown error, watch
Error from chokidar (D:\projects\product-travel-ui\node_modules\date-fns\esm_lib\getUTCDayOfYear):
Error: UNKNOWN: unknown error, watch
Error from chokidar (D:\projects\product-travel-ui\node_modules\date-fns\esm_lib\requiredArgs):
Error: UNKNOWN: unknown error, watch
Error from chokidar (D:\projects\product-travel-ui\node_modules\date-fns\esm_lib\setUTCDay): Error:
UNKNOWN: unknown error, watch
Error from chokidar (D:\projects\product-travel-ui\node_modules\date-fns\esm_lib\getUTCWeekYear):
Error: UNKNOWN: unknown error, watch
Error from chokidar (D:\projects\product-travel-ui\node_modules\date-fns\esm_lib\getUTCWeek): Error:
UNKNOWN: unknown error, watch
Error from chokidar (D:\projects\product-travel-ui\node_modules\date-fns\esm_lib\protectedTokens):
Error: UNKNOWN: unknown error, watch
Error from chokidar (D:\projects\product-travel-ui\node_modules\date-fns\esm_lib\getUTCISOWeek):
Error: UNKNOWN: unknown error, watch
Error from chokidar (D:\projects\product-travel-ui\node_modules\date-
fns\esm_lib\startOfUTCISOWeekYear): Error: UNKNOWN: unknown error, watch

错误日志太长,它记录了我在项目中使用的所有库。在终端出现这些行后,我们的项目无法热重载,我不得不手动重新启动它。

关于这些错误的任何想法?

4

1 回答 1

1

我遇到了这个问题,通过将项目移动到C盘解决了这个问题。也许它与文件特权有关?

于 2020-08-29T06:04:58.497 回答