首页 > 其他分享 >react-native项目启动报错 Error: `fsevents` unavailable (this watcher can only be used on Darwin)

react-native项目启动报错 Error: `fsevents` unavailable (this watcher can only be used on Darwin)

时间:2023-07-03 11:12:17浏览次数:40  
标签:used unavailable Darwin watchman 报错 Error fsevents watcher

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

标签:used,unavailable,Darwin,watchman,报错,Error,fsevents,watcher
From: https://www.cnblogs.com/jiuyi/p/17522279.html

相关文章

  • 2023-07-03 uniapp小程序端报错:TypeError: eval is not a function
    完整报错:ErrorinonLoadhook:"TypeError:evalisnotafunction" onLoad钩子中的错误:“TypeError:eval不是函数”原因:代码里使用了eval函数,小程序端不支持该函数,h5端和app(Android)端支持。解决方案:小程序端采取替换eval方案。注意:eval函数被认为是不安全的函数,存在脚本代......
  • dmPython连接达梦数据库,查询含有特殊字符报错'gbk' codec can't decode byte 0xaa in
     解决方法,可以在应用连接字符串url连接属性加上local_code=1指定客户端字符编码方式。#local_code=1表示执行客户端的本地编码是UTF-8,否则默认是GBKdm_conn=dmPython.connect(user=dm_user,password=dm_password,server='localhost',port=5236,local_code=1) 参考网......
  • Pycharm执行allure命令报错:allure 不是内部或外部命令,也不是可运行的程序 - 实测有效
    Pycharm执行allure命令报错:allure不是内部或外部命令,也不是可运行的程序现象:1、在doc中正常执行allure命令,只有在pycharm中无法执行2、在pycharm中打印os.environ,没有allureenv_dist=os.environforkeyinenv_dist:if'allure'inenv_dist[key]:print(k......
  • naven报错
    D:\code\interview\src\main\java\com\qucc\interview\ArrayListVsLinkedList.java:3:32java:无法访问org.springframework.util.StopWatch错误的类文件:/D:/softTool/apache-maven-3.6.1/mvn_repo/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar!/org/spri......
  • 在Vscode使用命令npm报错-The operation was rejected by your operating system. npm
    报错信息:PSD:\disk\xubo\个人博客文章\27-Vue\资料(含课件)\vuedemo\vueproject>npmipubsub-jsnpmERR!codeEPERMnpmERR!syscallopennpmERR!pathD:\disk\soft\node.js\node_cache_cacache\index-v5\1d\32\0400202fc22af03ff2926f006e455fe92c77b8136b8fbe......
  • [Linux][报错解决] Centos8发行版 运行locale和man报错
    报错信息先是运行manls时,Nomanualentryforls然后运行locale时,cannotsetLC_XXXtodefaultlocale:Nosuchfileordirectoryterminalmessage前因###运行manls时出现Nomanualentryforls,因为没有安装man-pages运行manls时出现man:can'tsettheloca......
  • mysql在新建用户时报错ERROR 1819
    问题描述:mysql在新建用户时报错ERROR1819,如下所示:数据库:mysql5.7.42系统:rhel7.31、问题重现mysql>grantreplicationslave,replicationclienton*.*to'slave'@'192.168.133.91'identifiedby"slave@12345";ERROR1819(HY000):Yourpassworddoe......
  • 添加ingress规则的时候报错
    [root@k8s-master01test]#kubectlapply-fweb-ingress.yamlErrorfromserver(InternalError):errorwhencreating"web-ingress.yaml":Internalerroroccurred:failedcallingwebhook"validate.nginx.ingress.kubernetes.io":failedtoca......
  • golang查询数据报错:closing bad idle connection: unexpected read from socket
    原因应用程序在使用驱动的有效空闲连接时候,发现数据库的连接已经失效(因为连接超过wait_timeout时间),用一个失效的连接查数据,所以报错。解决办法将sql驱动SetConnMaxLifetime和SetConnMaxIdleTime设置时间,并且小于数据库的wait_timeout时间(单位秒)。调小wait_timeout。分析......
  • 部署java的linux服务器远程报错:[USM] Channel request shell failed
    问题部署很多个微服务的linux服务器ssh远程突然进不去,远程工具提示:[USM]Channelrequestshellfailed排查分析因为部署的是很多个java进程,有可能线程数占满导致系统可创建线程耗尽,排查步骤如下:使用非远程方式进入服务器,使用top-H命令查看系统创建的线程数:查看系统允许创......