Follow-up to
From npx react-native@0.66.5 init RN0665 --version 0.66.5
yarn start --reset-cache
yarn ios
nvm is not compatible with the "PREFIX" environment variable: currently set to "/usr/local"
Run `unset PREFIX` to unset it.
Command PhaseScriptExecution failed with a nonzero exit code
The build error is now happening consistently for fresh RN projects, with unset PREFIX to no avail
Likely related to nvm from metamask-mobile setup (no other node manager in use)
nb: also running react-native+0.66.5.patch
If unable to figure soon, stick to Xcode (14.2 stable) for now i.e. not a blocker
nvm --version # 0.39.3
which nvm # nvm function definition: https://pastebin.com/CwvhKUN0
node --version # v14.21.3
which node # /opt/homebrew/opt/node@14/bin/node
echo $PATH
/opt/homebrew/opt/node@14/bin:/Users/leo/.rbenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/leo/Library/Android/sdk/emulator:/Users/leo/Library/Android/sdk/tools:/Users/leo/Library/Android/sdk/tools/bin:/Users/leo/Library/Android/sdk/platform-tools
Follow-up to
From
npx react-native@0.66.5 init RN0665 --version 0.66.5yarn start --reset-cacheyarn iosThe build error is now happening consistently for fresh RN projects, with
unset PREFIXto no availLikely related to
nvmfrom metamask-mobile setup (no other node manager in use)nb: also running react-native+0.66.5.patch
If unable to figure soon, stick to Xcode (14.2 stable) for now i.e. not a blocker
echo $PATH