Coder Social home page Coder Social logo

Comments (5)

bind-almir avatar bind-almir commented on June 9, 2024 1

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.

Kaffiend avatar Kaffiend commented on June 9, 2024 1

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.

colinskow avatar colinskow commented on June 9, 2024

Have you figured out why yarn behaves differently from npm?

from angular-electron-dream-starter.

d4hines avatar d4hines commented on June 9, 2024

Thanks for the tip about using yarn instead of npm. As a quick fix it worked great.

from angular-electron-dream-starter.

arcanefoam avatar arcanefoam commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.