Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Node.js crash on Windows when no read permissions for the disk root. #3977

Closed
@rukeba

Description

@rukeba

Node.js will crash with the error "Error: EPERM, operation not permitted 'C:'" if read permissions to the disk root are disabled. This situation happens often in a shared hosting environment since users only have permissions for certain folders and not the entire hard drive.

looking for "D:\\HostingSpaces\\misha1\\misha1.com\\wwwroot\\app.js" in ["D:\\HostingSpaces\\misha1\\misha1.com\\wwwroot\\node_modules","C:\\Program Files (x86)\\lib\\node"]
fs.js:520
  return binding.lstat(pathModule._makeLong(path));
                 ^
Error: EPERM, operation not permitted 'D:\'
    at Object.fs.lstatSync (fs.js:520:18)
    at start (fs.js:1017:10)
    at Object.realpathSync (fs.js:1005:3)
    at tryFile (module.js:142:15)
    at Function.Module._findPath (module.js:181:18)
    at Function.Module._resolveFilename (module.js:336:25)
    at Function.Module._load (module.js:280:25)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
node -v
v0.8.8

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions