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

  • 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
          throw er; // Unhandled 'error' event
      Error: spawn yarn ENOENT
      - child_process.js:240 Process.ChildProcess._handle.onexit
      - child_process.js:415 onErrorNT
      - next_tick.js:63 process._tickCallback
    Emitted 'error' event at:
      - child_process.js:246 Process.ChildProcess._handle.onexit
      - child_process.js:415 onErrorNT
        [... lines matching original stack trace ...]

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

  • @cynderkromi

    here are some people having successfully build a windows build in macos in docker:

  • @dobbel Thanks I will check that out

Log in to reply