-
-
Notifications
You must be signed in to change notification settings - Fork 488
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
Running electron-forge make
fails with no message at 'Preparing native dependencies' stage
#3603
Comments
electron-forge make
fails with no message at 'Preparing native dependencies' stage
Can you run the following command and put the output here? DEBUG=electron-packager electron-forge make |
electron-forge make
✔ Checking your system
❯ Loading configuration
✔ Loading configuration
❯ Resolving make targets
› Making for the following targets:
✔ Resolving make targets
❯ Running package command
❯ Preparing to package application
✔ Preparing to package application
❯ Running packaging hooks
❯ Running generateAssets hook
✔ Running generateAssets hook
❯ Running prePackage hook
✔ Running prePackage hook
✔ Running packaging hooks
❯ Packaging application
› Determining targets...
electron-packager Electron Packager 18.3.2
electron-packager Node v21.5.0
electron-packager Host Operating system: darwin 23.2.0 (arm64) +0ms
electron-packager Packager Options: {"asar":false,"overwrite":true,"ignore":[{}],"quiet":true,"dir":"/Users/will/projects/Anthem","arch":"arm64","platform":"darwin","afterFinalizePackageTargets":[null],"afterComplete":[null],"afterCopy":[null],"afterExtract":[null],"afterPrune":[null],"out":"/Users/will/projects/Anthem/out","electronVersion":"30.0.6"} +0ms
electron-packager Target Platforms: darwin +0ms
electron-packager Target Architectures: arm64 +0ms
electron-packager Inferring application name from productName in /Users/will/projects/Anthem/package.json +2ms
electron-packager Inferring appVersion from version in /Users/will/projects/Anthem/package.json +0ms
electron-packager Application name: Edparo +0ms
electron-packager Target Electron version: 30.0.6 +0ms
electron-packager Ignored path regular expressions: [
/^\/out\//g,
'/package-lock\\.json$',
'/yarn\\.lock$',
'/\\.git($|/)',
'/node_modules/\\.bin($|/)',
'\\.o(bj)?$',
'/node_gyp_bins($|/)'
] +0ms
❯ Packaging for arm64 on darwin
❯ Copying files
❯ Preparing native dependencies
❯ Finalizing package
(node:41671) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(Use `node --trace-deprecation ...` to show where the warning was created)
electron-packager Downloading Electron with options {"platform":"darwin","arch":"arm64","version":"30.0.6","artifactName":"electron"} +4ms
electron-packager Creating /var/folders/0j/h79qgyjn0455cn39vp7p5l7h0000gp/T/electron-packager/darwin-arm64-template-e3qqxI +106ms
electron-packager Extracting /Users/will/Library/Caches/electron/3d54a9c718fab1884964396a513941a6e35990df5e2be68ec213b09987fb5e2b/electron-v30.0.6-darwin-arm64.zip to /var/folders/0j/h79qgyjn0455cn39vp7p5l7h0000gp/T/electron-packager/darwin-arm64-template-e3qqxI +0ms
electron-packager Initializing app in /var/folders/0j/h79qgyjn0455cn39vp7p5l7h0000gp/T/electron-packager/tmp-Rrz0XO from /var/folders/0j/h79qgyjn0455cn39vp7p5l7h0000gp/T/electron-packager/darwin-arm64-template-e3qqxI template +1s
(node:41671) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:41671) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
electron-packager Ignored paths based on the out param: [ '/Users/will/projects/Anthem/out' ] +3ms
✔ Copying files
(node:41671) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:41671) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:41671) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:41671) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:41671) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
An unhandled rejection has occurred inside Forge:
Error: ENOENT: no such file or directory, stat ***@***.***/maker-dmg'
… On 20 May 2024, at 10:21 pm, Marco Kellershoff ***@***.***> wrote:
Can you run the following command and put the output here?
DEBUG=electron-packager npm run make
—
Reply to this email directly, view it on GitHub <#3603 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AHLFER2L2X32D4QB4BBOKXLZDHTDXAVCNFSM6AAAAABH7JLEZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRQGM2TCMJVGU>.
You are receiving this because you authored the thread.
|
Seems like you did not install the dev dep with |
![CleanShot 2024-05-20 at 23 49 58](https://github.com/electron/forge/assets/30822983/bd4ce0ed-08fa-400b-a540-fee5918a4ceb)
I’ve just reinstalled it to check. Didn’t have it in the dev dependencies before, but it was still there.
… On 20 May 2024, at 11:42 pm, Marco Kellershoff ***@***.***> wrote:
Seems like you did not install the dev dep with npm i -D @***@***.***, did you?
—
Reply to this email directly, view it on GitHub <#3603 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AHLFER4KTKW25LUTY6I557DZDH4WHAVCNFSM6AAAAABH7JLEZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRQGQ4TANBRGQ>.
You are receiving this because you authored the thread.
|
Can you, by any chance, put a repro example up as a public repo, so we can dig into this? |
@gorillamoe, just set one up: https://github.com/willpakpoy/ElectronForgeExampleRepo |
Your error log states that cross-zip is missing, can you install it (npm i -D cross-zip) and try again? |
I had cross-zip installed as a normal depedency, I just moved it to be a dev dependency and it still isn’t working.
… On 22 May 2024, at 12:48 am, Marco Kellershoff ***@***.***> wrote:
Your error log states that cross-zip is missing, can you install it (npm i -D cross-zip) and try again?
—
Reply to this email directly, view it on GitHub <#3603 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AHLFERYXWELBF6INSO6FO7DZDNNDJAVCNFSM6AAAAABH7JLEZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRSHAYTAMJQHE>.
You are receiving this because you authored the thread.
|
Same mistake, this is a brand new project installed through npm init electron-app@latest my-app -- --template=vite-typescript without any adjustments, on macOS Apple chip. `DEBUG=electron-packager npm run make
✔ Checking your system An unhandled rejection has occurred inside Forge: |
Pre-flight checklist
Electron Forge version
7.4.0
Electron version
v30.0.6
Operating system
macOS Sonoma 14.2 (build 23C5030f)
Last known working Electron Forge version
N/a.
Expected behavior
When running
electron-forge make
, the application should build.Actual behavior
The electron app fails to build at the "Preparing native dependencies" stage. There is no output.
Steps to reproduce
This is my electron entrypoint file. I just started working on this project so there isn't much here right now.
Additional information
No response
The text was updated successfully, but these errors were encountered: