jprichardson / node-fs-extra

Node.js: extra methods for the fs object like copy(), remove(), mkdirs()
MIT License
9.43k stars 775 forks source link

fs.rmSync is not a function #1030

Closed kiccer closed 6 months ago

kiccer commented 9 months ago
E:\Lynch Bel\workspace\glms-web\node_modules\fs-extra\lib\remove\index.js:11
  fs.rmSync(path, { recursive: true, force: true })
     ^

TypeError: fs.rmSync is not a function
    at Object.removeSync (E:\Lynch Bel\workspace\glms-web\node_modules\fs-extra\lib\remove\index.js:11:6)
    at items.forEach.item (E:\Lynch Bel\workspace\glms-web\node_modules\fs-extra\lib\empty\index.js:30:12)
    at Array.forEach (<anonymous>)
    at Object.emptyDirSync (E:\Lynch Bel\workspace\glms-web\node_modules\fs-extra\lib\empty\index.js:28:9)
    at Object.<anonymous> (E:\Lynch Bel\workspace\glms-web\postinstall.js:5:5)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)

v11.2.0

RyanZim commented 8 months ago

What Node.js version are you using?

RyanZim commented 6 months ago

Closing for lack of response