On Fri, Jul 9, 2021 at 2:02 PM Sérgio Basto <[email protected]> wrote:

> Hi, I'm testing nodejs-packaging-bundler , I'd packing nativefier
>
> #nodejs-packaging-bundler nativefier
>
> end with [1] Error: Cannot find module 'buffer-from' and I haven't
> found anyway to workaround it, any tips ?
>
> Thank you
>
>
> [1]
> > [email protected] postinstall /tmp/ci-
> 92tRUpHvYD/package/app/node_modules/core-js
> > node -e "try{require('./postinstall')}catch(e){}"
>
> Thank you for using core-js ( https://github.com/zloirock/core-js ) for
> polyfilling JavaScript standard library!
>
> The project needs your help! Please consider supporting of core-js on
> Open Collective or Patreon:
> > https://opencollective.com/core-js
> > https://www.patreon.com/zloirock
>
> Also, the author of core-js ( https://github.com/zloirock ) is looking
> for a good job -)
>
>
> > [email protected] postinstall /tmp/ci-
> 92tRUpHvYD/package/app/node_modules/electron
> > node install.js
>
> internal/modules/cjs/loader.js:888
> throw err;
> ^
>
> Error: Cannot find module 'buffer-from'
> Require stack:
> - /tmp/ci-92tRUpHvYD/package/app/node_modules/concat-stream/index.js
> - /tmp/ci-92tRUpHvYD/package/app/node_modules/extract-zip/index.js
> - /tmp/ci-92tRUpHvYD/package/app/node_modules/electron/install.js
> at Function.Module._resolveFilename
> (internal/modules/cjs/loader.js:885:15)
> at Function.Module._load (internal/modules/cjs/loader.js:730:27)
> at Module.require (internal/modules/cjs/loader.js:957:19)
> at require (internal/modules/cjs/helpers.js:88:18)
> at Object.<anonymous> (/tmp/ci-
> 92tRUpHvYD/package/app/node_modules/concat-stream/index.js:3:18)
> at Module._compile (internal/modules/cjs/loader.js:1068:30)
> at Object.Module._extensions..js
> (internal/modules/cjs/loader.js:1097:10)
> at Module.load (internal/modules/cjs/loader.js:933:32)
> at Function.Module._load (internal/modules/cjs/loader.js:774:14)
> at Module.require (internal/modules/cjs/loader.js:957:19) {
> code: 'MODULE_NOT_FOUND',
> requireStack: [
> '/tmp/ci-92tRUpHvYD/package/app/node_modules/concat-stream/index.js',
> '/tmp/ci-92tRUpHvYD/package/app/node_modules/extract-zip/index.js',
> '/tmp/ci-92tRUpHvYD/package/app/node_modules/electron/install.js'
> ]
> }
> npm WARN [email protected] No repository field.
>
> npm ERR! code ELIFECYCLE
> npm ERR! errno 1
> npm ERR! [email protected] postinstall: `node install.js`
> npm ERR! Exit status 1
> npm ERR!
> --
> Sérgio M. B.
>

I don't have a solution for you, I just want to say it does the same to me
as well.

One thing to note is that the error is while it's generating the dev
tarball.
The prod tarball (what's needed to run nativefier) get's correctly
generated.
Another note is that there are 6 modules in the prod tarball that need to
get their license looked up because we were not able to determine what it
was.

But the dev tarball is where things go weird.

Are you able to install and run nativefier locally?

Troy
_______________________________________________
nodejs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to