当我尝试运行我的反应原生项目时,我收到错误。所以我在网上看到我需要运行
跑步前" sudo npm start"
" npm运行android"
但是当我运行它时,会抛出以下错误:
Loading dependency graph...jest-haste-map: Watchman crawl failed. Retrying once with node crawler.
Usually this happens when watchman isn't running. Create an empty `.watchmanconfig` file in your project's root folder or initialize a git or hg repository in your project.
Error: Watchman error: ignorePattern is not a function. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.html.
ERROR ignorePattern is not a function
TypeError: ignorePattern is not a function
at HasteMap._ignore (/Users/perroloco/Programming/Vivancar/a_guard/node_modules/jest-haste-map/build/index.js:774:5)
at stdout.trim.split.filter.x (/Users/perroloco/Programming/Vivancar/a_guard/node_modules/jest-haste-map/build/crawlers/node.js:99:58)
at Array.filter (native)
at Socket.child.stdout.on (/Users/perroloco/Programming/Vivancar/a_guard/node_modules/jest-haste-map/build/crawlers/node.js:99:45)
at emitOne (events.js:101:20)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:501:12)
Loading dependency graph...npm ERR! code ELIFECYCLE
npm ERR! errno 11
npm ERR! a_guard@0.0.1 start: `node node_modules/react-native/local-cli/cli.js start`
npm ERR! Exit status 11
npm ERR!
npm ERR! Failed at the a_guard@0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/perroloco/.npm/_logs/2017-10-12T18_31_52_008Z-debug.log
我已经检查了已安装的守望者,我检查了我的项目中的ignorePattern函数,它似乎与我自己的代码没有任何关系,我被困在这里。 我还在线搜索了ignorePattern错误,发现没有类似的问题。
感谢您的帮助。