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.

This issue was resolved later on.

It appears that I should not invoke explicitly the shell. Then the calls go through fine and I do not see the error.

So, the yml was changed to -
macos:
xcode: 13.1.0
environment:

steps:

  • checkout
  • node/install:
    install-yarn: false
  • run:
  • run:
    name: Running xyz-app
    command: |
    cd xyz-app
    yarn install --verbose --network-timeout 100000

Notice that the shell command is removed.