pbarbiero / enhanced-electron-react-boilerplate

Modern and somewhat opinionated react+electron+webpack boilerplate
MIT License
61 stars 13 forks source link

ERROR in unknown: Invalid number - npm run package #10

Open eyal919 opened 6 years ago

eyal919 commented 6 years ago

Thank for great boilerpalte!!

At some point I was not able to create package and I'm getting the next error:

                         Asset       Size  Chunks                    Chunk Names
 font/photon-entypo__10lnA.eot    48.6 kB          [emitted]         
font/photon-entypo__i1XI6.woff    30.7 kB          [emitted]         
 font/photon-entypo__BJxdK.ttf    48.5 kB          [emitted]         
                     bundle.js    2.51 MB       0  [emitted]  [big]  main
                    bundle.css    40.9 kB       0  [emitted]         main
                    index.html  227 bytes          [emitted]         

ERROR in unknown: Invalid number (70027:15)

When checking the bundle.js at this line the code there is:


function mkdirP (p, opts, f, made) {
   ... 
    if (mode === undefined) {
        mode = 0777 & (~process.umask()); // the issue is with the octal 0777 that should be 0o777
    }
   ....
}

Any idea how to fix it?

pbarbiero commented 6 years ago

Sorry, I have never seen that before :(