相关平台
React Native
复现仓库
https://github.com/YingchenWang007/taroDemo.git
使用框架: React
复现步骤
yarn upgradePeerdeps
期望结果
success init
实际结果
yarn upgradePeerdeps
install-peerdeps v3.0.3
SUCCESS The peerDeps of @tarojs/taro-rn were installed successfully.
install-peerdeps v3.0.3
SUCCESS The peerDeps of @tarojs/components-rn were installed successfully.
install-peerdeps v3.0.3
SUCCESS The peerDeps of @tarojs/router-rn were installed successfully.
Scanning for pods...
1.11.3
pod install
[!] Invalid Podfile
file: cannot load such file -- ./scripts/autolinking.
from /Users/wangyingchen/Desktop/taroRn/ios/Podfile:1
-------------------------------------------
require File.join(File.dirname( node --print "require.resolve('expo/package.json')"
), "scripts/autolinking")
require_relative '../node_modules/react-native/scripts/react_native_pods'
-------------------------------------------
Couldn't install Pods. Updating the Pods project and trying again...
pod install --repo-update
[!] Invalid Podfile
file: cannot load such file -- ./scripts/autolinking.
from /Users/wangyingchen/Desktop/taroRn/ios/Podfile:1
-------------------------------------------
require File.join(File.dirname( node --print "require.resolve('expo/package.json')"
), "scripts/autolinking")
require_relative '../node_modules/react-native/scripts/react_native_pods'
-------------------------------------------
Couldn't install Pods. Updating the Pods project and trying again...
Command pod install
failed.
└─ Cause: Invalid Podfile
file: cannot load such file -- ./scripts/autolinking.
from /Users/wangyingchen/Desktop/taroRn/ios/Podfile:1
-------------------------------------------
require File.join(File.dirname( node --print "require.resolve('expo/package.json')"
), "scripts/autolinking")
require_relative '../node_modules/react-native/
环境信息
👽 Taro v3.6.19
Taro CLI 3.6.19 environment info:
System:
OS: macOS 14.1.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.17.1 - /private/var/folders/xy/3jwx7mdn36g1_jfyzmj_rlj80000gn/T/xfs-c689d59b/node
Yarn: 4.0.1 - /private/var/folders/xy/3jwx7mdn36g1_jfyzmj_rlj80000gn/T/xfs-c689d59b/yarn
npm: 9.6.7 - ~/.volta/tools/image/npm/9.6.7/bin/npm
4条答案
按热度按时间jrcvhitl1#
是使用的 yarn 1 吗?
看看项目的 node_modules 是否有expo
lskq00tm2#
@zhiqingchen 我也碰到这个问题,请问是对 yarn 的版本有限制吗?
ccgok5k53#
@zhiqingchen 我也碰到这个问题,请问是对 yarn 的版本有限制吗?
你解决了吗
eoxn13cs4#
使用 yarn 1