diff --git a/.circleci/config.yml b/.circleci/config.yml index 69976f4aa9b8c2..8490b5f7766c40 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -392,7 +392,7 @@ jobs: - run: name: Configure Environment Variables command: | - echo 'export PATH=/usr/local/opt/node@12/bin:$PATH' >> $BASH_ENV + echo 'export PATH=/usr/local/opt/node@16/bin:$PATH' >> $BASH_ENV source $BASH_ENV - with_brew_cache_span: @@ -407,6 +407,12 @@ jobs: - brew_install: package: applesimutils + - run: + name: Configure Node + # Sourcing find-node.sh will ensure nvm is set up. + # It also helps future invocation of find-node.sh prevent permission issue with nvm.sh. + command: source scripts/find-node.sh && nvm install 16 && nvm alias default 16 + - run: name: Configure Watchman command: touch .watchmanconfig @@ -622,8 +628,8 @@ jobs: name: Install Node # Note: Version set separately for non-Windows builds, see above. command: | - nvm install 14.17.0 - nvm use 14.17.0 + nvm install 16 + nvm use 16 # Setup Dependencies - run: diff --git a/scripts/validate-ios-test-env.sh b/scripts/validate-ios-test-env.sh index 3f87c191448332..494d1fa49965b6 100755 --- a/scripts/validate-ios-test-env.sh +++ b/scripts/validate-ios-test-env.sh @@ -23,7 +23,7 @@ fi # Check that the correct version of node is installed NODE_VERSION="$(command node --version | sed 's/[-/a-zA-Z]//g' |sed 's/.\{2\}$//')" -if (( $(echo "${NODE_VERSION} < 12.0" | bc -l) )); then +if (( $(echo "${NODE_VERSION} < 14.0" | bc -l) )); then echo "Node ${NODE_VERSION} detected. This version of Node is not supported." echo "See https://reactnative.dev/docs/getting-started.html for instructions." exit 1