2

I am trying to publish an npm package but I keep getting this error.

Any idea how I can fix it. please help me.

thanks in advance.

error

EBUSY
 all lstat
 C:\hiberfil.sys
 -4082
  EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'

3 Answers3

1

I had similar issues, try this:

  1. Remove node_modules directory, package-lock.json file.
  2. Run npm install
  3. Run npm cache clean --force
MarioG8
  • 5,122
  • 4
  • 13
  • 29
1

I tried deleting node modules but it didn't work. The issue in my case was because of a wrongly imported dependency by VSCode, I fixed the issue by removing the last imports I added to my code.

Shadab Ahmed
  • 556
  • 9
  • 20
0

in my project, the reason is I imported the wrong module like this "import {umd} from 'vue'" ,check out your

Lee Taylor
  • 7,761
  • 16
  • 33
  • 49