ScalablyTyped / SlinkyDemos

MIT License
29 stars 8 forks source link

cytoscape demo: digital envelope routines:: unsupported #48

Closed simlei closed 1 year ago

simlei commented 1 year ago

Hi,

I'm getting this error when trying to run the cytoscape demo. Any help is much appreciated!

> cytoscape / start
[info] Updating NPM dependencies
[info] Using lockfile /home/snuc/sandbox/SlinkyDemos/cytoscape/yarn.loc
[info] yarn install v1.22.19
[info] [1/4] Resolving packages...
[info] compiling 1 Scala source to /home/snuc/sandbox/SlinkyDemos/cytos
[info] [2/4] Fetching packages...
[info] Non-compiled module 'compiler-bridge_2.13' for Scala 2.13.2. Com
[info] [3/4] Linking dependencies...
[info] [4/4] Building fresh packages...
[info] Done in 8.17s.
8 warnings
[info]   Compilation completed in 8.359s.
[info] done compiling
[info] Fast optimizing /home/snuc/sandbox/SlinkyDemos/cytoscape/target/
[info] Writing scalajs.webpack.config.js
[info] Bundling the application with its NPM dependencies
[error] node:internal/crypto/hash:71
[error]   this[kHandle] = new _Hash(algorithm, xofLen);
[error]                   ^
[error] Error: error:0308010C:digital envelope routines::unsupported
TRACE_AT: at new Hash (node:internal/crypto/hash:71:19)
TRACE_AT: at Object.createHash (node:crypto:133:10)
TRACE_AT: at BulkUpdateDecorator.hashFactory (/home/snuc/sandbox/Slinky
TRACE_AT: at BulkUpdateDecorator.update (/home/snuc/sandbox/SlinkyDemos
TRACE_AT: at RawSource.updateHash (/home/snuc/sandbox/SlinkyDemos/cytos
TRACE_AT: at NormalModule._initBuildHash (/home/snuc/sandbox/SlinkyDemo
TRACE_AT: at handleParseResult (/home/snuc/sandbox/SlinkyDemos/cytoscap
[error]     at /home/snuc/sandbox/SlinkyDemos/cytoscape/target/scala-2.
TRACE_AT: at processResult (/home/snuc/sandbox/SlinkyDemos/cytoscape/ta
[error]     at /home/snuc/sandbox/SlinkyDemos/cytoscape/target/scala-2.
[error]   opensslErrorStack: [ 'error:03000086:digital envelope routine
[error]   library: 'digital envelope routines',
[error]   reason: 'unsupported',
[error]   code: 'ERR_OSSL_EVP_UNSUPPORTED'
[error] }
[error] Node.js v18.16.0
[error] Failure on parsing the output of webpack: No content to map due
[error]  at [Source: (ProcessPipeInputStream); line: 1, column: 0]
[error] You can try to manually execute the command
[error] node /home/snuc/sandbox/SlinkyDemos/cytoscape/target/scala-2.13
[error] 
[error] stack trace is suppressed; run 'last cytoscape / Compile / fast
[error] Total time: 15 s, completed Jun 17, 2023 12:21:20 PM
simlei commented 1 year ago

Downgrading to nodejs 16.0.0 (npm 7.10.0) solved this.