react-native项目启动报错 Error: `fsevents` unavailable (this watcher can only be used on Darwin)
react-native项目启动报错——watchman安装问题(mac pro)
Looking for JS files in /Users/你的名称/Documents/project/文件夹名 Loading dependency graph.../Users/你的名称/Documents/project/文件夹名/node_modules/metro/node_modules/sane/src/fsevents_watcher.js:37 throw new Error( ^ Error: `fsevents` unavailable (this watcher can only be used on Darwin)
解决办法:
npm install -g fsevents npm r -g watchman brew install watchman
#第三步时间会很长,要安装许多软件 brew upgrade watchman
执行完之后再去执行 下面运行命令就可以了
npm run start