title: Failed to load plugin 'react' declared in '.eslintrc.json': Cannot find module 'eslint-plugin-react'
body: <p>When run locally, it seems to work fine but crashes when its on pipeline</p>
  
  <p><a href="https://i.stack.imgur.com/CFzyf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CFzyf.png" alt="enter image description here"></a></p>
  
  <p>EDIT: After removing npx, it produces a different error:</p>
  
  <p><a href="https://i.stack.imgur.com/j659H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j659H.png" alt="enter image description here"></a></p>
  
  <p>I have followed the advice of installing the plugin:</p>
  
  <pre><code>npm install eslint-plugin-react@latest --save-dev
  </code></pre>
  
  <p>But seeps to repeat itself.</p>
  
  <p>Here's my retracted bitbucket-pipelines.yml config:</p>
  
  <pre><code>  - step:
            name: CI
            caches:
                - node
            script:
                - npm install
                - npm run lint
                - npm run test
  </code></pre>
  
  <p>eqautes to package.json</p>
  
  <pre><code>    "lint": "eslint --ext .js,.ts,.tsx src --ignore-pattern node_modules/",
      "test": "jest --verbose --colors --coverage",
  </code></pre>
  
  <p>Here's my eslint config file:</p>
  
  <pre><code>{
      "env": {
          "browser": true,
          "es6": true,
          "jest": true
      },
      "extends": [
          "eslint:recommended",
          "plugin:react/recommended",
          "airbnb"
      ],
      "globals": {
          "Atomics": "readonly",
          "SharedArrayBuffer": "readonly"
      },
      "parser": "@typescript-eslint/parser",
      "parserOptions": {
          "ecmaFeatures": {
              "jsx": true
          },
          "ecmaVersion": 2018,
          "sourceType": "module"
      },
      "plugins": [
          "react",
          "@typescript-eslint"
      ],
      "settings": {
        "import/resolver": {
          "node": {
            "extensions": [".js", ".ts", ".tsx"],
            "paths": ["src"]
          }
        }
      },
      "rules": {
      ...
      }
    }
  }
  </code></pre>