GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test-fs-readfilesync-enoent failing locally with unknown error · Issue #21501 · nodejs/node

test-fs-readfilesync-enoent failing locally with unknown error #21501

New issue
Copy link
New issue
Copy link
Closed
Closed
test-fs-readfilesync-enoent failing locally with unknown error#21501
Copy link
Labels
fsIssues and PRs related to file-system APIs and the fs module.testIssues and PRs related to Node.js core tests and test infrastructure.windowsIssues and PRs related to the Windows platform.

Description

@targos
targos
opened on Jun 24, 2018
Issue body actions
  • Version: master, v10.5.0
  • Platform: Windows 10 x64
  • Subsystem: fs
PS D:\Documents\GitHub\nodejs\node> node D:\Documents\GitHub\nodejs\node\test\parallel\test-fs-readfilesync-enoent.js
fs.js:119
    throw err;
    ^

Error: UNKNOWN: unknown error, lstat '\\localhost\c$\'
    at Object.realpathSync (fs.js:1395:5)
    at test (D:\Documents\GitHub\nodejs\node\test\parallel\test-fs-readfilesync-enoent.js:17:21)
    at Object.<anonymous> (D:\Documents\GitHub\nodejs\node\test\parallel\test-fs-readfilesync-enoent.js:26:1)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
    at startup (internal/bootstrap/node.js:240:19)

/cc @nodejs/platform-windows

Activity

  1. targos
    added
    fsIssues and PRs related to file-system APIs and the fs module.
    windowsIssues and PRs related to the Windows platform.
    testIssues and PRs related to Node.js core tests and test infrastructure.
    on Jun 24, 2018
  2. bzoz commented on Jun 25, 2018

    @bzoz
    bzoz
    on Jun 25, 2018
    Contributor
    More actions

    This works on my box. Maybe you have administrative shares disabled?

  3. targos commented on Jun 25, 2018

    @targos
    targos
    on Jun 25, 2018
    MemberAuthor
    More actions

    @bzoz My C: drives is shared. I found now that the call to fs.realpathSync() succeeds if I replace "localhost" with my computer's name. Would it make sense to modify the test and use os.hostname()?

  4. bzoz commented on Jun 28, 2018

    @bzoz
    bzoz
    on Jun 28, 2018
    Contributor
    More actions

    If it makes the test pass on your box then why not. Do you want me to make a PR for this?

  5. danbev
    closed this as completedin 1be804don Oct 1, 2018
  6. targos
    added 2 commits that reference this issue on Oct 1, 2018

    test: replace localhost with os.hostname in fs-readfilesync

    a1677e9

    test: replace localhost with os.hostname in fs-readfilesync

    23525b0
  7. sjarmak
    added a commit that references this issue on Jul 27, 2026

    test: replace localhost with os.hostname in fs-readfilesync

    1be804d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fsIssues and PRs related to file-system APIs and the fs module.testIssues and PRs related to Node.js core tests and test infrastructure.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.