Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All npm scripts fail (crypto/hash, RpcIpcMessage… & qode ENOENT) #10

Open
onegentig opened this issue Jan 23, 2024 · 0 comments
Open

Comments

@onegentig
Copy link

onegentig commented Jan 23, 2024

All the scripts just don’t work on a fresh clone with npm i. The first install warned me about an old lockfile, so apologies if I am necroposting. 💀

EDIT: I guess NodeGUI project is dead rip. Looked interesting. 😕


For build and dev, two errors show up. The first one at node:internal/crypto/hash:69:

error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:69:19)

and the second a bit later in lib/rpc/rpc-ipc/RpcIpcMessagePort.js:47:47:

     triggerUncaughtException(err, true /* fromPromise */);
     ^

RpcIpcMessagePortClosedError: Cannot send the message - the message port has been closed for the process 31422.
    at …/svelte-nodegui-starter/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/rpc-ipc/RpcIpcMessagePort.js:47:47

As for start and debug, qode seems to be missing. I tried to run npm i several times to no avail.

node:events:492
      throw er; // Unhandled 'error' event
      ^

Error: spawn /home/onegen/devel/experiments/svelte-nodegui-starter/node_modules/@nodegui/qode/binaries/qode ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)

System Information

  • OS: Fedora 38
  • Node version: 20.5.1
  • NPM version: 10.3.0

Full Outputs

Show…
$ npm run dev

> [email protected] dev
> webpack --mode=development

node:internal/crypto/hash:69
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:69:19)
    at Object.createHash (node:crypto:138:10)
    at BulkUpdateDecorator.hashFactory (/home/onegen/devel/experiments/svelte-nodegui-starter/node_modules/webpack/lib/util/createHash.js:144:18)
    at BulkUpdateDecorator.update (/home/onegen/devel/experiments/svelte-nodegui-starter/node_modules/webpack/lib/util/createHash.js:46:50)
    at OriginalSource.updateHash (/home/onegen/devel/experiments/svelte-nodegui-starter/node_modules/webpack-sources/lib/OriginalSource.js:104:8)
    at NormalModule._initBuildHash (/home/onegen/devel/experiments/svelte-nodegui-starter/node_modules/webpack/lib/NormalModule.js:753:17)
    at handleParseResult (/home/onegen/devel/experiments/svelte-nodegui-starter/node_modules/webpack/lib/NormalModule.js:817:10)
    at /home/onegen/devel/experiments/svelte-nodegui-starter/node_modules/webpack/lib/NormalModule.js:908:4
    at processResult (/home/onegen/devel/experiments/svelte-nodegui-starter/node_modules/webpack/lib/NormalModule.js:640:11)
    at /home/onegen/devel/experiments/svelte-nodegui-starter/node_modules/webpack/lib/NormalModule.js:692:5 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v20.5.1

            triggerUncaughtException(err, true /* fromPromise */);
            ^

RpcIpcMessagePortClosedError: Cannot send the message - the message port has been closed for the process 31422.
    at /home/onegen/devel/experiments/svelte-nodegui-starter/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/rpc-ipc/RpcIpcMessagePort.js:47:47
    at process.processTicksAndRejections (node:internal/process/task_queues:81:21) {
  code: undefined,
  signal: undefined
}

npm run build prints the same output as npm run dev.

$ npm run start

> [email protected] start
> node livereload.js node_modules/.bin/qode ./dist/index.js

node:events:492
      throw er; // Unhandled 'error' event
      ^

Error: spawn /home/onegen/devel/experiments/svelte-nodegui-starter/node_modules/@nodegui/qode/binaries/qode ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:292:12)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn /home/onegen/devel/experiments/svelte-nodegui-starter/node_modules/@nodegui/qode/binaries/qode',
  path: '/home/onegen/devel/experiments/svelte-nodegui-starter/node_modules/@nodegui/qode/binaries/qode',
  spawnargs: [ './dist/index.js' ]
}

Node.js v20.5.1

npm run debug output is same as npm run start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant