Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: ENOENT: no such file or directory, realpath #141

Open
WanGe2000 opened this issue Apr 24, 2024 · 1 comment
Open

Error: ENOENT: no such file or directory, realpath #141

WanGe2000 opened this issue Apr 24, 2024 · 1 comment

Comments

@WanGe2000
Copy link

When i unzip this file 12381.zip like this

const extractZip = require('extract-zip')

extractZip("C:\\Users\\wjdl\\Downloads\\12381.zip",{
    dir:"C:\\Users\\wjdl\\AppData\\Roaming\\Test\\cache\\mods\\temp\\12345678901234567890123456789012345678901234"
}).then(res=>{
    console.log(res)
},err=>{
    console.log(err)
})

I got an error

[Error: ENOENT: no such file or directory, realpath 'C:\Users\wjdl\AppData\Roaming\Test\cache\mods\temp\12345678901234567890123456789012345678901234\No Crafting Requirements (Fluffy Selective Install) (GamePass)\Weapons (Forge-Upgrade-Layer, Ignore Unlock Flags)\natives\MSG\data\Define\Player\Weapon\InsectGlaive'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'realpath',
  path: 'C:\\Users\\wjdl\\AppData\\Roaming\\Test\\cache\\mods\\temp\\12345678901234567890123456789012345678901234\\No Crafting Requirements (Fluffy Selective Install) (GamePass)\\Weapons (Forge-Upgrade-Layer, Ignore Unlock Flags)\\natives\\MSG\\data\\Define\\Player\\Weapon\\InsectGlaive'
}

But when i edit the dir path to “C:\Users\wjdl\AppData\Roaming\Test\cache\mods\temp\1234567890123456789012345678901234567890123”,The error is gone,i wonder why that is.

@WanGe2000
Copy link
Author

When i unzip this file 12381.zip like this

const extractZip = require('extract-zip')

extractZip("C:\\Users\\wjdl\\Downloads\\12381.zip",{
    dir:"C:\\Users\\wjdl\\AppData\\Roaming\\Test\\cache\\mods\\temp\\12345678901234567890123456789012345678901234"
}).then(res=>{
    console.log(res)
},err=>{
    console.log(err)
})

I got an error

[Error: ENOENT: no such file or directory, realpath 'C:\Users\wjdl\AppData\Roaming\Test\cache\mods\temp\12345678901234567890123456789012345678901234\No Crafting Requirements (Fluffy Selective Install) (GamePass)\Weapons (Forge-Upgrade-Layer, Ignore Unlock Flags)\natives\MSG\data\Define\Player\Weapon\InsectGlaive'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'realpath',
  path: 'C:\\Users\\wjdl\\AppData\\Roaming\\Test\\cache\\mods\\temp\\12345678901234567890123456789012345678901234\\No Crafting Requirements (Fluffy Selective Install) (GamePass)\\Weapons (Forge-Upgrade-Layer, Ignore Unlock Flags)\\natives\\MSG\\data\\Define\\Player\\Weapon\\InsectGlaive'
}

But when i edit the dir path to “C:\Users\wjdl\AppData\Roaming\Test\cache\mods\temp\1234567890123456789012345678901234567890123”,The error is gone,i wonder why that is.

extract-zip version: 2.0.1
nodejs version: v14.19.0
os version: Windows 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant