Skip to content

Fix OpenSSL compatibility issue in Node.js#36

Open
arnavbee wants to merge 1 commit into
smartcontracts:mainfrom
arnavbee:fix/setting-up-the-site
Open

Fix OpenSSL compatibility issue in Node.js#36
arnavbee wants to merge 1 commit into
smartcontracts:mainfrom
arnavbee:fix/setting-up-the-site

Conversation

@arnavbee
Copy link
Copy Markdown

@arnavbee arnavbee commented Sep 6, 2024

Description (#35 )

To run the project successfully, clone the repository and setup locally.

Run this command in the bash:

export NODE_OPTIONS=--openssl-legacy-provider

then run

npm run dev

This PR addresses the compatibility issue encountered with Node.js version 17 and higher, which leads to errors related to OpenSSL 3.0. The following changes have been made:

  • Downgraded Node.js: Updated the project to use Node.js version 16.x to ensure compatibility and prevent the error: error:0308010C:digital envelope routines::unsupported.

  • Environment Variable Option: Added instructions to set the NODE_OPTIONS environment variable to allow legacy OpenSSL providers as an alternative solution.

Changes Made

  • Updated the Node.js version in the project setup instructions.

Testing
Verified that the project runs successfully with Node.js version 16.x.

Confirmed that setting the NODE_OPTIONS environment variable resolves the issue for those who prefer to use a higher Node.js version.

@netlify
Copy link
Copy Markdown

netlify Bot commented Sep 6, 2024

Deploy Preview for eth2book failed.

Name Link
🔨 Latest commit ecaf0ff
🔍 Latest deploy log https://app.netlify.com/sites/eth2book/deploys/66db3af29c2428000857347b

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

Successfully merging this pull request may close these issues.

1 participant