Skip to content

Unable to copy file for caching: ENOENT #8507

Closed
@theboolean

Description

@theboolean
  • Electron-Builder Version: 24.13.3
  • Node Version: 18.x
  • Electron Version: 31
  • Electron Type (current, beta, nightly): current
    Which version of electron-updater are you using (if applicable)? 6.3.4
  • Target: macOS

After updating electron-updater from 6.2.0 to 6.3.4 we are getting errors like:
Unable to copy file for caching: ENOENT: no such file or directory, copyfile '/Users/{USER_NAME_REDACTED}/Library/Caches/{APP_NAME_REDACTED}-updater/pending/{APP_NAME_AND_VERSION_REDACTED}-arm64-mac.zip' -> ''
every time users check for updates. this line seems to be the problem:

copyFileSync(event.downloadedFile, cachedUpdateFile)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions