I entered a similar error when I manually cloned the repository for The Truffle environment NFT-BOX and the steps I took where simply going to github and copying the https link and the using the git clone <https-link>
then went to the truffle folder and npm install
lastly went to the client folder and also npm install
. Everything went smoothly except that when I run the client using npm start
I get the error below:
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:69:19)
at Object.createHash (node:crypto:133:10)
at module.exports (D:nft-boxclientnode_moduleswebpacklibutilcreateHash.js:135:53)
at NormalModule._initBuildHash (D:Interview-Preparationnft-boxclientnode_moduleswebpacklibNormalModule.js:417:16)
at handleParseError (D:Interview-Preparationnft-boxclientnode_moduleswebpacklibNormalModule.js:471:10)
at D:nft-boxclientnode_moduleswebpacklibNormalModule.js:503:5
at D:nft-boxclientnode_moduleswebpacklibNormalModule.js:358:12
at D:nft-boxclientnode_modulesloader-runnerlibLoaderRunner.js:373:3
at iterateNormalLoaders (D:Interview-Preparationnft-boxclientnode_modulesloader-runnerlibLoaderRunner.js:214:10)
at iterateNormalLoaders (D:Interview-Preparationnft-boxclientnode_modulesloader-runnerlibLoaderRunner.js:221:10)
at D:Interview-Preparationnft-boxclientnode_modulesloader-runnerlibLoaderRunner.js:236:3
at runSyncOrAsync (D:Interview-Preparationnft-boxclientnode_modulesloader-runnerlibLoaderRunner.js:130:11)
at iterateNormalLoaders (D:Interview-Preparationnft-boxclientnode_modulesloader-runnerlibLoaderRunner.js:232:2)
at Array.<anonymous> (D:Interview-Preparationnft-boxclientnode_modulesloader-runnerlibLoaderRunner.js:205:4)
at Storage.finished (D:Interview-Preparationnft-boxclientnode_modulesenhanced-resolvelibCachedInputFileSystem.js:55:16)
at D:Interview-Preparationnft-boxclientnode_modulesenhanced-resolvelibCachedInputFileSystem.js:91:9
D:nft-boxclientnode_modulesreact-scriptsscriptsstart.js:19
throw err;
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:69:19)
at Object.createHash (node:crypto:133:10)
at module.exports (D:Interview-Preparationnft-boxclientnode_moduleswebpacklibutilcreateHash.js:135:53)
at NormalModule._initBuildHash (D:Interview-Preparationnft-boxclientnode_moduleswebpacklibNormalModule.js:417:16)
at D:nft-boxclientnode_moduleswebpacklibNormalModule.js:452:10
at D:nft-boxclientnode_moduleswebpacklibNormalModule.js:323:13
at D:nft-boxclientnode_modulesloader-runnerlibLoaderRunner.js:367:11
at D:nft-boxclientnode_modulesloader-runnerlibLoaderRunner.js:233:18
at context.callback (D:nft-boxclientnode_modulesloader-runnerlibLoaderRunner.js:111:13)
at D:nft-boxclientnode_modulesbabel-loaderlibindex.js:55:103 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
I am using node v18.23. The dependencies and scripts in the package.json file looks like this:
"dependencies": {
"autoprefixer": "^10.4.20",
"postcss": "^8.4.47",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "3.2.0",
"tailwindcss": "^3.4.12",
"web3": "^1.6.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
Does anyone know how to resolve this error?
I have tried updating the react scripts using npm update react-scripts --save
2