For my react project I am tryin to build the project by running the command npm run build then an error is encountered showing:
[email protected] build
CI= react-scripts build
‘CI’ is not recognized as an internal or external command,
operable program or batch file.
Then I have changed the “build”: “CI= react-scripts build” to “build”: “react-scripts build”, then another error is comming as:
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:68:19)
at Object.createHash (node:crypto:138:10)
at module.exports (C:UsersronigOneDriveDesktopreact coursemy-appnode_moduleswebpacklibutilcreateHash.js:135:53)
at NormalModule._initBuildHash (C:UsersronigOneDriveDesktopreact coursemy-appnode_moduleswebpacklibNormalModule.js:417:16)
at C:UsersronigOneDriveDesktopreact coursemy-appnode_moduleswebpacklibNormalModule.js:452:10
at C:UsersronigOneDriveDesktopreact coursemy-appnode_moduleswebpacklibNormalModule.js:323:13
at C:UsersronigOneDriveDesktopreact coursemy-appnode_modulesloader-runnerlibLoaderRunner.js:367:11
at C:UsersronigOneDriveDesktopreact coursemy-appnode_modulesloader-runnerlibLoaderRunner.js:233:18
at context.callback (C:UsersronigOneDriveDesktopreact coursemy-appnode_modulesloader-runnerlibLoaderRunner.js at C:UsersronigOneDriveDesktopreact coursemy-appnode_modulesbabel-loaderlibindex.js:59:103
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error’ ],
library: ‘digital envelope routines’,
reason: ‘unsupported’,
code: ‘ERR_OSSL_EVP_UNSUPPORTED’
}
Node.js v20.11.1
Soumyadeep Ghosh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.