nodegui / svelte-nodegui-starter

55 stars 8 forks source link

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

Open onegentig opened 7 months ago

onegentig commented 7 months ago

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

Full Outputs

Show… ```sh $ npm run dev > svelte-nodegui-starter@1.0.2 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`. ```sh $ npm run start > svelte-nodegui-starter@1.0.2 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`.