question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please tell me how to create an electron-builder development environment in a Windows.

See original GitHub issue

Hi. I would like to small contribute to this project. I read this document and tried to create a development environment. But, I’m failing the “pnpm compile” command. There are some points to be worried about.

  1. When I execute the pnpm install command, I get the error. ERR_PNPM_PREPARE_PKG_FAILURE not found: yarn.
  2. When I execute the yalk link *** command, I get many warning messages. Could not find package `app-builder-lib` in store (C:\Users\***\AppData\Local\Yalc\packages\app-builder-lib), skipping.
  3. When I execute the pnpm compile command, I get the error. ```‘tsc’ is not recognized as an internal or external command ~~~``

Any information is welcome.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mmaiettacommented, May 19, 2022

Would you be willing to open a PR on the document with the information you needed to get your env set up? We can iterate on it from there 😃 It’s been a long time since I’ve had to set up an env and both my dev machines are already configured.

Doc: https://github.com/electron-userland/electron-builder/blob/master/CONTRIBUTING.md

1reaction
KaminoRyocommented, May 12, 2022

The pnpm install and pnpm compile commands were successful with the yarn installed.🎊 A different installation log was displayed.

node_modules/.pnpm/esbuild@0.12.29/node_modules/esbuild: Running postinstall script, done in 3.8s node_modules/.pnpm/puppeteer@2.1.1/node_modules/puppeteer: Running install script, done in 14.9s

dependencies:

  • dmg-license 1.0.11

devDependencies:

. postinstall$ patch-package │ Applying patches… │ @changesets/cli@2.19.0 ✔ . prepare$ husky install

Next, Not in the specified order, but after pnpm compile , yalc publish <12 packages I need to link> in the packages folder. (This command cannot specify multiple packages, so you need to do it 12 times 😫) In this state, when yalc link <12 packages I need to link> is performed in the project folder (electron-builder), the following log is displayed.

Because of pnpm-workspace.yaml exists in this package --pure option will be used by default, to override use --no-pure. electron-forge-maker-appimage@23.0.8 added to .yalc\electron-forge-maker-appimage purely Because of pnpm-workspace.yaml exists in this package --pure option will be used by default, to override use --no-pure. electron-forge-maker-nsis@23.0.8 added to .yalc\electron-forge-maker-nsis purely Because of pnpm-workspace.yaml exists in this package --pure option will be used by default, to override use --no-pure. electron-forge-maker-nsis-web@23.0.8 added to .yalc\electron-forge-maker-nsis-web purely Because of pnpm-workspace.yaml exists in this package --pure option will be used by default, to override use --no-pure. electron-forge-maker-snap@23.0.8 added to .yalc\electron-forge-maker-snap purely Because of pnpm-workspace.yaml exists in this package --pure option will be used by default, to override use --no-pure. electron-builder@23.0.8 added to .yalc\electron-builder purely Because of pnpm-workspace.yaml exists in this package --pure option will be used by default, to override use --no-pure. builder-util@23.0.8 added to .yalc\builder-util purely Because of pnpm-workspace.yaml exists in this package --pure option will be used by default, to override use --no-pure. builder-util-runtime@9.0.2 added to .yalc\builder-util-runtime purely Because of pnpm-workspace.yaml exists in this package --pure option will be used by default, to override use --no-pure. electron-publish@23.0.8 added to .yalc\electron-publish purely Because of pnpm-workspace.yaml exists in this package --pure option will be used by default, to override use --no-pure. electron-builder-squirrel-windows@23.0.8 added to .yalc\electron-builder-squirrel-windows purely Because of pnpm-workspace.yaml exists in this package --pure option will be used by default, to override use --no-pure. dmg-builder@23.0.8 added to .yalc\dmg-builder purely Because of pnpm-workspace.yaml exists in this package --pure option will be used by default, to override use --no-pure. electron-updater@5.0.3 added to .yalc\electron-updater purely Because of pnpm-workspace.yaml exists in this package --pure option will be used by default, to override use --no-pure. app-builder-lib@23.0.8 added to .yalc\app-builder-lib purely

It’s not accurate because I don’t have any knowledge about workspace, but I think this is okay. That’s all for today.

Read more comments on GitHub >

github_iconTop Results From Across the Web

electron-builder
A complete solution to package and build a ready for distribution Electron app for macOS, Windows and Linux with “auto update” support out...
Read more >
A Comprehensive Guide to Building and Packaging an ...
Prerequisites for Packaging Windows Apps on Mac; electron-forge ... Before you can package an Electron app, you first must build one.
Read more >
How To Create Your First Cross-Platform Desktop Application ...
First you'll install Electron to your machine and create the project folder to build the desktop application. To start the Electron installation ...
Read more >
Build Instructions | Electron
Follow the guidelines below for building Electron itself, for the purposes of creating custom Electron binaries. For bundling and distributing your app code ......
Read more >
Building desktop applications with Electron - electron-builder
In this tutorial, we will take a look at using electron-builder to package and build a ready for distribution Electron app. Since I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found