Ios 新建M1 mbp中的RN项目失败。“找不到节点。请确保它位于bash路径中,或设置node\u二进制环境变量。”

Ios 新建M1 mbp中的RN项目失败。“找不到节点。请确保它位于bash路径中,或设置node\u二进制环境变量。”,ios,xcode,react-native,apple-m1,apple-silicon,Ios,Xcode,React Native,Apple M1,Apple Silicon,新RN项目创建成功,但Xcode生成失败 错误: 错误:找不到节点。确保它位于bash路径中或设置NODE_二进制环境变量 命令PhaseScriptExecution失败,退出代码为非零 节点由自制程序安装,而英特尔mbp没有此错误 如何解决此错误 路径中的节点 npm-g垃圾箱 /opt/homebrew/bin echo$PATH /Users/chia/.pyenv/shimes:/Users/chia/.rbenv/shimes:/Users/chia/.rbenv/bin:/opt/

新RN项目创建成功,但Xcode生成失败

错误:

错误:找不到节点。确保它位于bash路径中或设置NODE_二进制环境变量

命令PhaseScriptExecution失败,退出代码为非零

节点由自制程序安装,而英特尔mbp没有此错误

如何解决此错误

路径中的节点

npm-g垃圾箱 /opt/homebrew/bin

echo$PATH /Users/chia/.pyenv/shimes:/Users/chia/.rbenv/shimes:/Users/chia/.rbenv/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin

它解决了

System:
    OS: macOS 11.3
    CPU: (8) arm64 Apple M1
    Memory: 124.86 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.0.0 - /opt/homebrew/bin/node
    Yarn: Not Found
    npm: 7.10.0 - /opt/homebrew/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.10.1 - /Users/chia/.rbenv/shims/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    Android SDK: Not Found
  IDEs:
    Android Studio: Not Found
    Xcode: 12.5/12E262 - /usr/bin/xcodebuild
  Languages:
    Java: Not Found
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.1 => 17.0.1 
    react-native: 0.64.0 => 0.64.0 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
sudo ln -s $(which node) /usr/local/bin/node