File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -392,7 +392,7 @@ jobs:
392392 - run :
393393 name : Configure Environment Variables
394394 command : |
395- echo 'export PATH=/usr/local/opt/node@12 /bin:$PATH' >> $BASH_ENV
395+ echo 'export PATH=/usr/local/opt/node@16 /bin:$PATH' >> $BASH_ENV
396396 source $BASH_ENV
397397
398398 - with_brew_cache_span :
@@ -407,6 +407,12 @@ jobs:
407407 - brew_install :
408408 package : applesimutils
409409
410+ - run :
411+ name : Configure Node
412+ # Sourcing find-node.sh will ensure nvm is set up.
413+ # It also helps future invocation of find-node.sh prevent permission issue with nvm.sh.
414+ command : source scripts/find-node.sh && nvm install 16 && nvm alias default 16
415+
410416 - run :
411417 name : Configure Watchman
412418 command : touch .watchmanconfig
@@ -622,8 +628,8 @@ jobs:
622628 name : Install Node
623629 # Note: Version set separately for non-Windows builds, see above.
624630 command : |
625- nvm install 14.17.0
626- nvm use 14.17.0
631+ nvm install 16
632+ nvm use 16
627633
628634 # Setup Dependencies
629635 - run :
Original file line number Diff line number Diff line change 2323# Check that the correct version of node is installed
2424NODE_VERSION=" $( command node --version | sed ' s/[-/a-zA-Z]//g' | sed ' s/.\{2\}$//' ) "
2525
26- if (( $(echo "${NODE_VERSION} < 12 .0 " | bc - l) )) ; then
26+ if (( $(echo "${NODE_VERSION} < 14 .0 " | bc - l) )) ; then
2727 echo " Node ${NODE_VERSION} detected. This version of Node is not supported."
2828 echo " See https://reactnative.dev/docs/getting-started.html for instructions."
2929 exit 1
You can’t perform that action at this time.
0 commit comments