title: npm install error in Bitbucket CI/CD pipeline
body: <p>I have a pipeline set up for my Bitbucket repository that runs <code>npm install</code> if there is no <code>node</code> cache. Up until now it has worked fine, but the <code>node</code> cache was recently cleared, and now I'm getting the following output from Bitbucket (Pastebin link, due to character limit): <a href="https://pastebin.com/fY9TznNn" rel="nofollow noreferrer">https://pastebin.com/fY9TznNn</a></p>
  <p><code>package.json</code>:</p>
  <pre><code>{
    &quot;name&quot;: &quot;my-app&quot;,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@testing-library/jest-dom&quot;: &quot;^4.2.4&quot;,
      &quot;@testing-library/react&quot;: &quot;^9.3.2&quot;,
      &quot;@testing-library/user-event&quot;: &quot;^7.1.2&quot;,
      &quot;@types/geojson&quot;: &quot;^7946.0.7&quot;,
      &quot;@types/google-libphonenumber&quot;: &quot;^7.4.19&quot;,
      &quot;@types/google-map-react&quot;: &quot;^2.1.0&quot;,
      &quot;@types/jest&quot;: &quot;^24.0.0&quot;,
      &quot;@types/node&quot;: &quot;^12.12.55&quot;,
      &quot;@types/react&quot;: &quot;^16.9.49&quot;,
      &quot;@types/react-bootstrap&quot;: &quot;^0.32.22&quot;,
      &quot;@types/react-dom&quot;: &quot;^16.9.8&quot;,
      &quot;@types/react-modal&quot;: &quot;^3.10.6&quot;,
      &quot;@types/react-router-dom&quot;: &quot;^5.1.5&quot;,
      &quot;@types/supercluster&quot;: &quot;^5.0.2&quot;,
      &quot;axios&quot;: &quot;^0.21.1&quot;,
      &quot;bootstrap&quot;: &quot;^4.5.2&quot;,
      &quot;enzyme&quot;: &quot;^3.11.0&quot;,
      &quot;eslint&quot;: &quot;^6.8.0&quot;,
      &quot;firebase&quot;: &quot;^7.24.0&quot;,
      &quot;geojson&quot;: &quot;^0.5.0&quot;,
      &quot;google-libphonenumber&quot;: &quot;^3.2.14&quot;,
      &quot;google-map-react&quot;: &quot;^2.1.3&quot;,
      &quot;node-sass&quot;: &quot;^4.0.0&quot;,
      &quot;react&quot;: &quot;^16.13.1&quot;,
      &quot;react-async&quot;: &quot;^10.0.1&quot;,
      &quot;react-bootstrap&quot;: &quot;^1.3.0&quot;,
      &quot;react-cool-img&quot;: &quot;^1.2.4&quot;,
      &quot;react-dom&quot;: &quot;^16.13.1&quot;,
      &quot;react-dropzone&quot;: &quot;^11.3.2&quot;,
      &quot;react-modal&quot;: &quot;^3.12.1&quot;,
      &quot;react-router-dom&quot;: &quot;^5.2.0&quot;,
      &quot;react-scripts&quot;: &quot;^3.4.4&quot;,
      &quot;supercluster&quot;: &quot;^7.1.0&quot;,
      &quot;typescript&quot;: &quot;^3.2.1&quot;,
      &quot;use-supercluster&quot;: &quot;^0.2.9&quot;
    },
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;react-scripts start&quot;,
      &quot;build&quot;: &quot;react-scripts build&quot;,
      &quot;test&quot;: &quot;react-scripts test&quot;,
      &quot;eject&quot;: &quot;react-scripts eject&quot;,
      &quot;lint&quot;: &quot;npx prettier --write src &amp;&amp; npx eslint src --fix --ext .ts --ext .tsx&quot;
    },
    &quot;eslintConfig&quot;: {
      &quot;extends&quot;: &quot;react-app&quot;
    },
    &quot;browserslist&quot;: {
      &quot;production&quot;: [
        &quot;&gt;0.2%&quot;,
        &quot;not dead&quot;,
        &quot;not op_mini all&quot;
      ],
      &quot;development&quot;: [
        &quot;last 1 chrome version&quot;,
        &quot;last 1 firefox version&quot;,
        &quot;last 1 safari version&quot;
      ]
    },
    &quot;devDependencies&quot;: {
      &quot;@types/enzyme&quot;: &quot;^3.10.8&quot;,
      &quot;@types/enzyme-adapter-react-16&quot;: &quot;^1.0.6&quot;,
      &quot;@typescript-eslint/eslint-plugin&quot;: &quot;^3.10.1&quot;,
      &quot;@typescript-eslint/parser&quot;: &quot;^3.10.1&quot;,
      &quot;enzyme&quot;: &quot;^3.11.0&quot;,
      &quot;enzyme-adapter-react-16&quot;: &quot;^1.15.6&quot;,
      &quot;eslint&quot;: &quot;^7.23.0&quot;,
      &quot;eslint-config-airbnb&quot;: &quot;^18.2.0&quot;,
      &quot;eslint-config-prettier&quot;: &quot;^6.11.0&quot;,
      &quot;eslint-plugin-import&quot;: &quot;^2.22.0&quot;,
      &quot;eslint-plugin-jsx-a11y&quot;: &quot;^6.3.1&quot;,
      &quot;eslint-plugin-promise&quot;: &quot;^4.3.1&quot;,
      &quot;eslint-plugin-react&quot;: &quot;^7.20.6&quot;,
      &quot;eslint-plugin-react-hooks&quot;: &quot;^4.1.0&quot;,
      &quot;eslint-plugin-sort-keys-fix&quot;: &quot;^1.1.1&quot;,
      &quot;prettier&quot;: &quot;^2.1.1&quot;
    }
  }
  </code></pre>
  <p><code>bitbucket-pipelines.yml</code>:</p>
  <pre><code>image: node
  
  definitions:
    steps:
      - step: &amp;lint
          name: Check code style
          script:
            - npm install # this is where the error occurs
            - npx eslint **/*.ts[x]
          caches:
            - node
      - step: &amp;build
          name: Build and test
          script:
            - echo &gt; &quot;.env&quot;
            - echo REACT_APP_GOOGLE_API_KEY=$GOOGLE_API_KEY &gt;&gt; &quot;.env&quot;
            - echo REACT_APP_HANDSHAKE_API_KEY=$HANDSHAKE_API_KEY &gt;&gt; &quot;.env&quot;
            - npm install
            - npm run test
            - npm run build
          artifacts:
            - build/**
          caches:
            - node
      - step: &amp;deploy
          name: Deploy to Firebase
          script:
            - cd functions
            - npm install
            - cd ..
            - pipe: atlassian/firebase-deploy:1.0.0
              variables:
                FIREBASE_TOKEN: $FIREBASE_TOKEN
                PROJECT_ID: $FIREBASE_PROJECT
  
  pipelines:
    pull-requests:
      &quot;**&quot;:
        - step: *lint
        - step: *build
  
    branches:
      master:
        - step: *lint
        - step: *build
        - step: *deploy
  </code></pre>
  <p>I'm concerned it might have something to do with the <code>node-sass</code> package as I've experienced issues with it before, and it's the first dependency to appear in the error. But I'm really not sure how to interpret this output or how to fix it. Thanks for any help!</p>