gpt4 book ai didi

ios - 在 M1 mbp 中构建的新 RN 项目失败。 "Could not find node. Make sure it is in bash PATH or set the NODE_BINARY environment variable."

转载 作者:行者123 更新时间:2023-12-04 12:07:30 29 4
gpt4 key购买 nike

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
新建 RN 项目创建成功,但 Xcode 构建失败。
错误:

Error: Could not find node. Make sure it is in bash PATH or set the NODE_BINARY environment variable.

Command PhaseScriptExecution failed with a nonzero exit code



自制安装的节点,英特尔mbp没有这个错误。
如何解决此错误?
PATH 中的节点 npm -g bin /opt/homebrew/bin echo $PATH /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

最佳答案

sudo ln -s $(which node) /usr/local/bin/node
它解决了。

关于ios - 在 M1 mbp 中构建的新 RN 项目失败。 "Could not find node. Make sure it is in bash PATH or set the NODE_BINARY environment variable.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67337836/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com