Comments (5)
I can confirm this issue in my case too.
Changing line number 3 inside config/install-app-deps.js
from:
const installOrRebuild = require('electron-builder/out/util/yarn').installOrRebuild;
to:
const installOrRebuild = require('electron-builder-lib/out/util/yarn').installOrRebuild;
resolved issue for me.
from angular-electron-dream-starter.
so this happens when you install with npm
, instead of yarn. Both should be supported. yarn
does not install the electron-builder-lib
package but npm
does. Maybe we can change the build process to utilize the electron-builder install-app-deps
command instead or we can simply put in a quick fix to handle which ever exists after install for the correct path in the script.
from angular-electron-dream-starter.
Have you figured out why yarn
behaves differently from npm
?
from angular-electron-dream-starter.
Thanks for the tip about using yarn instead of npm. As a quick fix it worked great.
from angular-electron-dream-starter.
Till #32 fix is accepted, perhaps this?
try { // Try with yarn layout
installOrRebuild = require('electron-builder/out/util/yarn').installOrRebuild;
} catch (e) {
if (e.code !== 'MODULE_NOT_FOUND') {
throw e;
}
// Try with npm layout
installOrRebuild = require('electron-builder-lib/out/util/yarn').installOrRebuild;;
}
from angular-electron-dream-starter.
Related Issues (20)
- Build Website Bundle HOT 1
- Wrong .node module (native binding) included in build HOT 8
- Reload is not available with electron HOT 5
- False positive e2e tests. HOT 2
- Could not draw <table> in detail.component.ts template
- Cannot invoke an expression whose type lacks a call signature HOT 2
- Unable to change packed filename executable HOT 2
- NGRX Examples HOT 4
- Preloading Strategy & Lazy Loaded Modules HOT 4
- package:windows fails HOT 13
- Splash screen when main window is loading HOT 4
- Redux Devtools not detecting state HOT 7
- The dist/package.json file is missing HOT 2
- 'firebase-admin' npm package throws an error. HOT 5
- Angular 6 Upgrade HOT 24
- Packaging for linux cannot fetch appimage-9.0.1 HOT 2
- Tests are timing out, increase in time also gives same result
- Compatibility with use of browser HOT 1
- 5000 forks and 100 stars, people are savages. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-electron-dream-starter.