npm create-react-app测试错误 [英] npm test error for create-react-app
本文介绍了npm create-react-app测试错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我为提供的示例测试的create-react-app应用程序运行 npm run test
时遇到此错误。我尝试查找EMFILE错误,但无法理解问题所在。
I'm getting this error when I run npm run test
for a create-react-app application for the sample test provided. I tried looking for the EMFILE error but I'm unable to understand what's going wrong.
错误:监视文件更改时出错:EMFILE
在export._errnoException(util.js:1022:11)
在FSEvent.FSWatcher._handle.onchange(fs.js:1406:11)
推荐答案
我遇到了同样的问题,发现未安装 watchman
。
运行 brew install watchman
。
I had the same issue and discovered watchman
was not installed.
Run brew install watchman
.
这篇关于npm create-react-app测试错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文