No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Error building electron app

    CLI
    1
    3
    863
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      vince2020 last edited by

      When I want to build an electronic app, the following error occurs. Please help me to see how to solve it. There is no exception in the development mode,be deeply grateful!

      success Saved lockfile.
      Done in 2.24s.
      
       App · Bundling app with electron-packager...
      
      Packaging app for platform win32 x64 using electron v9.4.4
      
       App · ⚠️  [FAIL] electron-packager could not build
      
      Error: spawn powershell.exe ENOENT
      
      (node:15768) UnhandledPromiseRejectionWarning: undefined
      (node:15768) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6)
      (node:15768) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
      PS F:\XDD\lifeon-electron>
      

      This is my environment configuration

      PS F:\XDD\lifeon-electron> quasar info
      
      Operating System - Windows_NT(10.0.18363) - win32/x64
      NodeJs - 12.20.2
      
      Global packages
        NPM - 7.5.6
        yarn - 1.22.10
        @quasar/cli - 1.1.0
        @quasar/icongenie - Not installed
        cordova - Not installed
      
      Important local packages
        quasar - 1.15.4 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
        @quasar/app - 2.1.15 -- Quasar Framework local CLI
        @quasar/extras - 1.9.18 -- Quasar Framework fonts, icons and animations
        eslint-plugin-quasar - Not installed
        vue - 2.6.12 -- Reactive, component-oriented view layer for modern web interfaces.
        vue-router - 3.2.0 -- Official router for Vue.js 2
        vuex - 3.6.0 -- state management for Vue.js
        electron - 9.4.4 -- Build cross platform desktop apps with JavaScript, HTML, and CSS
        electron-packager - 14.2.1 -- Customize and package your Electron app with OS-specific bundles (.app, .exe, etc.) via JS or CLI
        electron-builder - 22.10.5 -- A complete solution to package and build a ready for distribution Electron app for MacOS, Windows and Linux with “auto update” support out of the box
        @babel/core - 7.13.8 -- Babel compiler core.
        webpack - 4.44.2 -- Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders 
      to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
        webpack-dev-server - 3.11.0 -- Serves a webpack app. Updates the browser on changes.
        workbox-webpack-plugin - Not installed
        register-service-worker - 1.7.1 -- Script for registering service worker, with hooks
        typescript - 3.9.5 -- TypeScript is a language for application scale JavaScript development
        @capacitor/core - Not installed
        @capacitor/cli - Not installed
        @capacitor/android - Not installed
        @capacitor/ios - Not installed
      
      Quasar App Extensions
        *None installed*
      
      1 Reply Last reply Reply Quote 0
      • V
        vince2020 last edited by

        Edit the path environment variable in the user environment variable, and add the path of windows PowerShell
        C:\Windows\System32\WindowsPowerShell\v1.0

        After trying, it finally worked!

        1 Reply Last reply Reply Quote 0
        • V
          vince2020 last edited by

          App · Bundling app with electron-packager…

          Packaging app for platform win32 x64 using electron v9.4.4

          App · [SUCCESS] electron-packager built the app

          Build succeeded

          Build mode… electron
          Pkg quasar… v1.15.4
          Pkg @quasar/app… v2.1.15
          Debugging… no
          Publishing… no
          Transpiled JS… yes (Babel)

          Output folder… F:\XDD\lifeon-electron\dist\electron

          PS F:\XDD\lifeon-electron>

          1 Reply Last reply Reply Quote 0
          • First post
            Last post