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

Failed to package under Windows 10 #2578

Closed
3 tasks done
karoyqiu opened this issue Oct 14, 2021 · 1 comment
Closed
3 tasks done

Failed to package under Windows 10 #2578

karoyqiu opened this issue Oct 14, 2021 · 1 comment
Labels

Comments

@karoyqiu
Copy link

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Electron Forge version

6.0.0-beta.61

Electron version

v15.1.2

Operating system

Windows 10 (20H2, 19042.1288)

Last known working Electron Forge version

No response

Expected behavior

Package the application.

Actual behavior

Package fails.

Steps to reproduce

Run the commands below in Command Prompt:

> yarn create electron-app test-electron-forge
> cd test-electron-forge
> set DEBUG=electron-forge:*
> yarn package

Additional information

My command output:

> yarn create electron-app test-electron-forge
yarn create v1.22.5
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "[email protected]" with binaries:
      - create-electron-app
✔ Initializing Project Directory
✔ Initializing Git Repository
✔ Locating custom template: "base"
✔ Copying Starter Files
✔ Initializing NPM Module
✔ Installing Template Dependencies
✔ Installing NPM Dependencies
Done in 18.94s.

> cd test-electron-forge
> set DEBUG=electron-forge:*
> yarn package
yarn run v1.22.5
$ electron-forge package
WARNING: DEBUG environment variable detected. Append the electron-forge:lifecycle namespace
to the value of DEBUG in order to view progress indicators.
  electron-forge:async-ora Process Started: Checking your system +0ms
  electron-forge:check-system checking system, create ~/.skip-forge-system-check to stop doing this +0ms
  electron-forge:async-ora Process Succeeded: Checking your system -- after 223ms +223ms
WARNING: DEBUG environment variable detected. Append the electron-forge:lifecycle namespace
to the value of DEBUG in order to view progress indicators.
  electron-forge:async-ora Process Started: Preparing to Package Application for arch: x64 +0ms
  electron-forge:project-resolver searching for project in: C:\Users\<username>\source\repos\test-electron-forge +0ms
  electron-forge:project-resolver electron-forge compatible package.json found in C:\Users\<username>\source\repos\test-electron-forge\package.json +2ms
  electron-forge:packager packaging with options {
  asar: false,
  overwrite: true,
  dir: 'C:\\Users\\<username>\\source\\repos\\test-electron-forge',
  arch: 'x64',
  platform: 'win32',
  afterCopy: [ [AsyncFunction (anonymous)] ],
  afterExtract: [ [AsyncFunction (anonymous)] ],
  afterPrune: [ [AsyncFunction (anonymous)] ],
  out: 'C:\\Users\\<username>\\source\\repos\\test-electron-forge\\out',
  electronVersion: '15.1.2',
  quiet: true
} +0ms

An unhandled rejection has occurred inside Forge:
[Error: EISDIR: illegal operation on a directory, realpath '<my-temp-dir>\electron-packager\win32-x64-template'] {
  errno: -4068,
  code: 'EISDIR',
  syscall: 'realpath',
  path: '<my-temp-dir>\\electron-packager\\win32-x64-template'
}

Electron Forge was terminated. Location:
{}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@karoyqiu karoyqiu added the bug label Oct 14, 2021
@karoyqiu
Copy link
Author

After some research, I've found that the error is from fs.realpath.native. The I found this issue: nodejs/node#6861 (comment). That is exactly what I met. So this issue closed here.

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

No branches or pull requests

1 participant