theRAPTLab / gsgo

GEM-STEP Foundation repo migrated from GitLab June 2023
1 stars 1 forks source link

Runtime Crash: 0308010C:digital envelope routines::unsupported #766

Open daveseah opened 10 months ago

daveseah commented 10 months ago

Developing Issue...

SYMPTOMS

When running npm run gem from the top-level gsgo directory, this error may occur:

image

On MACOS: It appears to occur when running in the VSCode Integrated Terminal, but does not appear in a the Terminal App.

DIAGNOSIS

In 2022, Node versions greater than v16 deprecated an insecure hash routine called MD4, and this is the cause of the error when webpack is being used programmatically within the gem-app-srv program that builds the app in development mode. This article provides a background as well as some insecure workarounds.

However, we are NOT using a NodeJS version greater than v16; our .nvmrc version (applied with the nvm use command) is v14.18.1! It appears that some elements of the webpack build system are ignoring the current version and are invoking the default node version of your system, and this apparently happens only inside VSCode's integrated terminal.

WORKAROUNDS

When using the VSCode Integrated Terminal (opened via ctrl-tilde):