Changing the xcode version from 13.1.0 to 13.2.1 causes yarn to fail

The yml file looks like this

macos:
xcode: 13.1.0
environment:

steps:
- checkout
- node/install:
install-yarn: false
- run:

- run:
name: Running xyz-app
shell: /bin/sh
command: |
cd xyz-app
yarn install --verbose --network-timeout 100000

If the xcode version is changed from 13.1.0 to 13.2.0 and run yarn install fails as given below…

  • cd gethai-app
  • yarn install --verbose --network-timeout 100000
    env: node: No such file or directory

It is not clear why changing the version of the xcode causes this error.