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

    Building a Windows build on a MacOS - Error: spawn yarn ENOENT

    CLI
    3
    4
    533
    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.
    • B
      bach last edited by bach

      I’m on a 2015 MacBook Pro and for the life of me, I cannot see why I cannot make an .exe build (Windows) on my Mac.

      ❯ quasar build --mode electron --target win
      
       Build mode........ electron
       Pkg quasar........ v1.9.8
       Pkg @quasar/app... v1.6.0
       Debugging......... no
       Publishing........ no
      
       app:quasar-conf Reading quasar.conf.js +0ms
       app:webpack Extending Renderer process Webpack config +3s
       app:webpack Extending Main process Webpack config +29ms
       app:artifacts Cleaned build artifact: "/Users/dan/code/ss/app/scr/dist/electron" +36ms
       app:generator Generating Webpack entry point +3ms
       app:build Building... +9ms
      
       Renderer process ███████████               building [44%] 288/289 modules 1 active
       Main process     █████████████████████████ [100%] in ~11s
      
      
       Renderer process █████████████████████████ [100%] in ~17s
       Main process     █████████████████████████ [100%] in ~11s
      
      
      
      Version: webpack 4.41.6
      Time: 17180ms
      Built at: 03/07/2020 7:51:18 PM
                                               Asset       Size  Chunks                         Chunk Names
                                css/app.e85ae70d.css    191 KiB       1  [emitted] [immutable]  app
                  fonts/KFOkCnqEu92Fr1MmgVxIIzQ.woff   19.9 KiB          [emitted]              
                 fonts/KFOlCnqEu92Fr1MmEU9fBBc-.woff     20 KiB          [emitted]              
                 fonts/KFOlCnqEu92Fr1MmSU5fBBc-.woff   19.9 KiB          [emitted]              
                 fonts/KFOlCnqEu92Fr1MmWUlfBBc-.woff   19.9 KiB          [emitted]              
                 fonts/KFOlCnqEu92Fr1MmYUtfBBc-.woff   19.9 KiB          [emitted]              
                     fonts/KFOmCnqEu92Fr1Mu4mxM.woff   19.8 KiB          [emitted]              
             fonts/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.woff   77.7 KiB          [emitted]              
      fonts/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2   59.4 KiB          [emitted]              
                                          index.html  873 bytes          [emitted]              
                                             js/2.js   12.1 KiB       2  [emitted]              
                                             js/3.js   1.64 KiB       3  [emitted]              
                                             js/4.js  431 bytes       4  [emitted]              
                                           js/app.js   5.01 KiB       1  [emitted]              app
                                        js/vendor.js    231 KiB       0  [emitted]              vendor
      Entrypoint app = js/vendor.js css/app.e85ae70d.css js/app.js
      
      
      
      Version: webpack 4.41.6
      Time: 11191ms
      Built at: 03/07/2020 7:51:12 PM
                 Asset       Size  Chunks             Chunk Names
      electron-main.js   10.1 KiB       0  [emitted]  electron-main
          package.json  590 bytes          [emitted]  
      Entrypoint electron-main = electron-main.js
      
       app:spawn Running "yarn install --production" +18s
      
      events.js:174
            throw er; // Unhandled 'error' event
            ^
      
        Error: spawn yarn ENOENT
        
        - child_process.js:240 Process.ChildProcess._handle.onexit
          internal/child_process.js:240:19
        
        - child_process.js:415 onErrorNT
          internal/child_process.js:415:16
        
        - next_tick.js:63 process._tickCallback
          internal/process/next_tick.js:63:19
        
      
      Emitted 'error' event at:
        
        - child_process.js:246 Process.ChildProcess._handle.onexit
          internal/child_process.js:246:12
        
        - child_process.js:415 onErrorNT
          [... lines matching original stack trace ...]
      
      
      C 1 Reply Last reply Reply Quote 2
      • C
        cynderkromi @bach last edited by

        @bach Have you been able to build a windows exe on the Mac? I’m trying to do the same thing.

        dobbel 1 Reply Last reply Reply Quote 0
        • dobbel
          dobbel @cynderkromi last edited by

          @cynderkromi

          here are some people having successfully build a windows build in macos in docker:
          https://github.com/electron-userland/electron-builder/issues/4305

          C 1 Reply Last reply Reply Quote 0
          • C
            cynderkromi @dobbel last edited by

            @dobbel Thanks I will check that out

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