# Weird behavior after yarn

**URL:** <https://discuss.circleci.com/t/weird-behavior-after-yarn/47077>\
**Category:** Product Feedback\
**Created:** [February 14, 2023, 7:54pm UTC](https://discuss.circleci.com/t/weird-behavior-after-yarn/47077 "2023-02-14T19:54:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jb68](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jb68/32/29554_2.png) [@jb68](https://discuss.circleci.com/u/jb68)\
**Post date:** [February 14, 2023, 7:54pm UTC](https://discuss.circleci.com/t/weird-behavior-after-yarn/47077/1 "2023-02-14T19:54:43Z")

</div>

I am getting a weird behavior after using yarn. Eny -run step fails after the one using yarn

```auto
    parameters:
      environment:
        type: string
    executor:
      name: test-executor
    steps:
      - checkout
      - browser-tools/install-chrome:
          chrome-version: 109.0.5414.74
          replace-existing: true
      - browser-tools/install-chromedriver
      - run:
          name: Check install
          command: |
            google-chrome --version
            chromedriver --version
      - run:
          name: Prepare tests config
          command: |
            set +x
            pwd
            ls
      - run:
          name: Setup npm
          command: |
            npm config set prefix ~/.npm-global
            npm i -g corepack
            export PATH="$HOME/.npm-global/bin:$PATH"
            corepack enable
            yarn set version 3.2.3
      - run:
          name: Prepare tests config
          command: |
            set +x
            pwd
            ls

```

The last run test fails with:

```auto
Exited with code exit status 11
CircleCI received exit code 11

```

---

<div class="post-metadata">

**Author:** ![rit1010](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/rit1010/32/34738_2.png) [@rit1010](https://discuss.circleci.com/u/rit1010)\
**Post date:** [February 14, 2023, 10:04pm UTC](https://discuss.circleci.com/t/weird-behavior-after-yarn/47077/2 "2023-02-14T22:04:23Z")

</div>

error 11 from within a Linux shell normally means an executable has caused a segmentation fault.

The output in the job log may provide more hints about exactly which executable caused the fault, it is not that easy to tell from looking at the config file you have posted.

---

<div class="post-metadata">

**Author:** ![jb68](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jb68/32/29554_2.png) [@jb68](https://discuss.circleci.com/u/jb68)\
**Post date:** [February 14, 2023, 11:29pm UTC](https://discuss.circleci.com/t/weird-behavior-after-yarn/47077/3 "2023-02-14T23:29:53Z")

</div>

Not sure what log you are referring to.  
There is nothing more this is the entire log screen after another npm command.

```auto
#!/bin/bash -eo pipefail
npm i -g corepack

Exited with code exit status 11
CircleCI received exit code 11

```

I also figure out that this happens on 22.04 machine executor but not on docker.  
You can try for yourself to craft a job to verify.
