title: New RN project in M1 mbp built failed. "Could not find node. Make sure it is in bash PATH or set the NODE_BINARY environment variable."
body: <pre><code>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 =&gt; 17.0.1 
      react-native: 0.64.0 =&gt; 0.64.0 
      react-native-macos: Not Found
    npmGlobalPackages:
      *react-native*: Not Found
  </code></pre>
  <p>New RN project create successful, but built failed by Xcode.</p>
  <p>Error:</p>
  <blockquote>
  <p>Error: Could not find node. Make sure it is in bash PATH or set the NODE_BINARY environment variable.</p>
  <blockquote>
  <p>Command PhaseScriptExecution failed with a nonzero exit code</p>
  </blockquote>
  </blockquote>
  <p><strong>node installed by homebrew, and Intel mbp doesn't have this error.</strong></p>
  <p>How to resolve this error?</p>
  <p>Node in the PATH</p>
  <p><code>npm -g bin</code>
  <code>/opt/homebrew/bin</code></p>
  <p><code>echo $PATH</code>
  <code>/Users/chia/.pyenv/shims:/Users/chia/.rbenv/shims:/Users/chia/.rbenv/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin</code></p>