title: vuejs - Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'
body: <p><strong>Description</strong></p>
  <p>Everytime I run <code>npm run serve</code> the following error code appears:</p>
  <pre><code>ERROR  Failed to compile with 1 error                                                                     15:34:19
  
  This dependency was not found:
  
  * ... in ./node_modules/cache-loader/dist/cjs.js?{&quot;cacheDirectory&quot;:&quot;node_modules/.cache/vue-loader&quot;,&quot;cacheIdentifie
  r&quot;:&quot;1a1491e2-vue-loader-template&quot;}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./no
  de_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Ho
  me.vue?vue&amp;type=template&amp;id=8dc7cce2&amp;
  
  To install it, you can run: npm install --save ...
  Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'
  Error from chokidar (C:\node_modules): Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'
  Error from chokidar (C:\node_modules): Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'
  Error from chokidar (C:\node_modules): Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'
  </code></pre>
  <p>This error seemed to arise after adding a bootstrap carousel in my ./components/file.vue. although I fail to understand how the carroussel is linked to the npm chokidar package.</p>
  <p><strong>What I've tried</strong></p>
  <p>This issue being a duplicate of <a href="https://stackoverflow.com/questions/61936085/error-from-chokidar-c-error-ebusy-resource-busy-or-locked-lstat-c-dump">Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat &#39;C:\DumpStack.log.tmp</a>, I tried the solutions suggested without solving anything. I also tried <code>npm install --save</code> as suggested by the error code as well as <code>npm cache clean --force</code>. I have uninstalled the npm chokidar package, which didn't solve the issue, and deleted the <code>C:\DumpStack.log.tmp</code> file too. Finally I also installed the bootstrap-vue npm package which had no effect on the bug. None of the following have solved the issue althought I am aware this probably a pretty basic error.</p>
  <p><strong>package.json</strong></p>
  <pre><code>{
    &quot;name&quot;: &quot;vuejs-client&quot;,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;private&quot;: true,
    &quot;scripts&quot;: {
      &quot;serve&quot;: &quot;vue-cli-service serve&quot;,
      &quot;build&quot;: &quot;vue-cli-service build&quot;,
      &quot;lint&quot;: &quot;vue-cli-service lint&quot;
    },
    &quot;dependencies&quot;: {
      &quot;3&quot;: &quot;^2.1.0&quot;,
      &quot;axios&quot;: &quot;^0.21.1&quot;,
      &quot;bootstrap-vue&quot;: &quot;^2.21.2&quot;,
      &quot;chokidar&quot;: &quot;^3.5.1&quot;,
      &quot;core-js&quot;: &quot;^3.6.5&quot;,
      &quot;vue&quot;: &quot;^2.6.11&quot;,
      &quot;vue-router&quot;: &quot;^3.5.1&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@vue/cli-plugin-babel&quot;: &quot;~4.5.0&quot;,
      &quot;@vue/cli-plugin-eslint&quot;: &quot;~4.5.0&quot;,
      &quot;@vue/cli-service&quot;: &quot;~4.5.0&quot;,
      &quot;babel-eslint&quot;: &quot;^10.1.0&quot;,
      &quot;eslint&quot;: &quot;^6.7.2&quot;,
      &quot;eslint-plugin-vue&quot;: &quot;^6.2.2&quot;,
      &quot;vue-template-compiler&quot;: &quot;^2.6.11&quot;
    },
    &quot;eslintConfig&quot;: {
      &quot;root&quot;: true,
      &quot;env&quot;: {
        &quot;node&quot;: true
      },
      &quot;extends&quot;: [
        &quot;plugin:vue/essential&quot;,
        &quot;eslint:recommended&quot;
      ],
      &quot;parserOptions&quot;: {
        &quot;parser&quot;: &quot;babel-eslint&quot;
      },
      &quot;rules&quot;: {}
    },
    &quot;browserslist&quot;: [
      &quot;&gt; 1%&quot;,
      &quot;last 2 versions&quot;,
      &quot;not dead&quot;
    ]
  }
  </code></pre>
  <p>I followed the following tutorial as frame of reference for what I want to achieve with this website: <a href="https://bezkoder.com/vue-node-express-mongodb-mevn-crud/" rel="noreferrer">https://bezkoder.com/vue-node-express-mongodb-mevn-crud/</a></p>