rn0.59.9安装包过程中的问题

本文记录了在升级React Native后,安装node_modules时遇到[email protected]安装失败的问题,错误信息提示与Xcode及Command Line Tools相关。最终发现问题是由于Node.js版本从8.11.1升级到12.14.0导致,通过重新安装node_modules解决了该问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

> fsevents@1.2.11 install /Users/chenghuiping1/Documents/allProjects/compony/frontend_rn/node_modules/sane/node_modules/fsevents
> node-gyp rebuild

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
 

 

rn升级后,node_modules安装了n多少次

每次都报这个问题

最后问题出在node的版本上,8.11.1==>12.14.0高一点的版本

再重装node_modules就好了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值