React-Native env: node: No such file or directory
程序员文章站
2022-03-08 20:34:58
...
React-Native env: node: No such file or directory
由于mac的node 环境是使用的nvm,所以在Xcode 编译app的时候就会报找不到node
解决方案: 下载node文件,装入系统
或者,参考以下脚本
export SENTRY_PROPERTIES=sentry.properties
# Setup nvm and set node
[ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"
if [[ -s "$HOME/.nvm/nvm.sh" ]]; then
. "$HOME/.nvm/nvm.sh"
elif [[ -x "$(command -v brew)" && -s "$(brew --prefix nvm)/nvm.sh" ]]; then
. "$(brew --prefix nvm)/nvm.sh"
fi
[ -z "$NODE_BINARY" ] && export NODE_BINARY="node"
$NODE_BINARY ../node_modules/@sentry/cli/bin/sentry-cli upload-dsym
脚本来源 https://*.com/questions/49041080/react-native-env-node-no-such-file-or-directory
上一篇: AngularJS表单验证
下一篇: 我就是这样用C++加载图片的
推荐阅读
-
【openWRT】编译问题/usr/bin/env: node: No such file or directory
-
Homebrew 安装 node 后,npm报 env: node no such file or directory
-
idea env: node: No such file or directory
-
【/usr/bin/env: node: No such file or directory】 的解决办法
-
Python Error: /usr/bin/env: python3: No such file or directory
-
报错:/usr/bin/env: php: No such file or directory
-
linux 安装phpunit5 报错 /usr/bin/env :php: No such file or directory
-
linux composer centos7 /usr/bin/env: php: No such file or directory
-
CentOS bug : /usr/bin/env: 'python': No such file or directory
-
NPM项目运行出现安装node-sass报错Error: ENOENT: no such file or directory, scandir