**I see the error below when I use the command npm run start **
node:internal/crypto/hash:71
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports (/Users/pavannandan/Desktop/Angle/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/Users/pavannandan/Desktop/Angle/node_modules/webpack/lib/NormalModule.js:417:16)
at handleParseError (/Users/pavannandan/Desktop/Angle/node_modules/webpack/lib/NormalModule.js:471:10)
at /Users/pavannandan/Desktop/Angle/node_modules/webpack/lib/NormalModule.js:503:5
at /Users/pavannandan/Desktop/Angle/node_modules/webpack/lib/NormalModule.js:358:12
at /Users/pavannandan/Desktop/Angle/node_modules/loader-runner/lib/LoaderRunner.js:373:3
at iterateNormalLoaders (/Users/pavannandan/Desktop/Angle/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
at iterateNormalLoaders (/Users/pavannandan/Desktop/Angle/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /Users/pavannandan/Desktop/Angle/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at context.callback (/Users/pavannandan/Desktop/Angle/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at /Users/pavannandan/Desktop/Angle/node_modules/babel-loader/lib/index.js:44:71 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v18.12.1
Tried quick troubleshooting but still see the same error.
Related
this is full error which getting in my terminal
Starting the development server...
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports (C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\webpack\lib\util\createHash.js:90:53)
at NormalModule._initBuildHash (C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\webpack\lib\NormalModule.js:386:16)
at handleParseError (C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\webpack\lib\NormalModule.js:434:10)
at C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\webpack\lib\NormalModule.js:466:5
at C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\webpack\lib\NormalModule.js:327:12
at C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
at iterateNormalLoaders (C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
at C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\loader-runner\lib\LoaderRunner.js:236:3
at runSyncOrAsync (C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\loader-runner\lib\LoaderRunner.js:130:11)
at iterateNormalLoaders (C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\loader-runner\lib\LoaderRunner.js:232:2)
at Array. (C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
at Storage.finished (C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
at C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\react-scripts\scripts\start.js:19
throw err;
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports (C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\webpack\lib\util\createHash.js:90:53)
at NormalModule._initBuildHash (C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\webpack\lib\NormalModule.js:386:16)
at C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\webpack\lib\NormalModule.js:418:10
at C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\webpack\lib\NormalModule.js:293:13
at C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\loader-runner\lib\LoaderRunner.js:233:18
at context.callback (C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at C:\Users\dell\Desktop\netflixxxxxxxx\node_modules\babel-loader\lib\index.js:51:103 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v18.13.0
Basically, when I create a new expo project and use npm run web it throws me this error and I can't find the solution, please help, thanks
it does works to open it with android, the problem is only running on web
Logs for your project will appear below. Press Ctrl+C to exit.
node:internal/crypto/hash:71
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports (X:\DataYProgramas\ReactJS\expo4\openty\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (X:\DataYProgramas\ReactJS\expo4\openty\node_modules\webpack\lib\NormalModule.js:417:16)
at handleParseError (X:\DataYProgramas\ReactJS\expo4\openty\node_modules\webpack\lib\NormalModule.js:471:10)
at X:\DataYProgramas\ReactJS\expo4\openty\node_modules\webpack\lib\NormalModule.js:503:5
at X:\DataYProgramas\ReactJS\expo4\openty\node_modules\webpack\lib\NormalModule.js:358:12
at X:\DataYProgramas\ReactJS\expo4\openty\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (X:\DataYProgramas\ReactJS\expo4\openty\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
at Array.<anonymous> (X:\DataYProgramas\ReactJS\expo4\openty\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
at Storage.finished (X:\DataYProgramas\ReactJS\expo4\openty\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
at X:\DataYProgramas\ReactJS\expo4\openty\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
at X:\DataYProgramas\ReactJS\expo4\openty\node_modules\graceful-fs\graceful-fs.js:123:16
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v18.12.1
Which version of node.js you using, because for me is not working on latest(18.12.1) but working on 16.18.1, but on version 16.18.1 not working on ios
``
Failed to construct transformer: Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:133:10)
at stableHash (E:\Project\consumer-app\node_modules\metro-cache\src\stableHash.js:19:8)
at Object.getCacheKey (E:\Project\consumer-app\node_modules\metro-transform-worker\src\index.js:593:7)
at getTransformCacheKey (E:\Project\consumer-app\node_modules\metro\src\DeltaBundler\getTransformCacheKey.js:24:19)
at new Transformer (E:\Project\consumer-app\node_modules\metro\src\DeltaBundler\Transformer.js:48:9)
at E:\Project\consumer-app\node_modules\metro\src\Bundler.js:22:29
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'
}
downgraded node version to 14
E:\HOC\HK3\Vue\demo>npm run serve
demo#0.1.0 serve
vue-cli-service serve
INFO Starting development server...
10% building 2/4 modules 2 active ...\webpack-dev-server\client\index.js?http://192.168.1.46:8080&sockPath=/sockjs-nodeError: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:130:10)
at module.exports (E:\HOC\HK3\Vue\demo\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (E:\HOC\HK3\Vue\demo\node_modules\webpack\lib\NormalModule.js:417:16)
at handleParseError (E:\HOC\HK3\Vue\demo\node_modules\webpack\lib\NormalModule.js:471:10)
at E:\HOC\HK3\Vue\demo\node_modules\webpack\lib\NormalModule.js:503:5
at E:\HOC\HK3\Vue\demo\node_modules\webpack\lib\NormalModule.js:358:12
at E:\HOC\HK3\Vue\demo\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (E:\HOC\HK3\Vue\demo\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
at iterateNormalLoaders (E:\HOC\HK3\Vue\demo\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
at E:\HOC\HK3\Vue\demo\node_modules\loader-runner\lib\LoaderRunner.js:236:3
at runSyncOrAsync (E:\HOC\HK3\Vue\demo\node_modules\loader-runner\lib\LoaderRunner.js:130:11)
at iterateNormalLoaders (E:\HOC\HK3\Vue\demo\node_modules\loader-runner\lib\LoaderRunner.js:232:2)
at Array. (E:\HOC\HK3\Vue\demo\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
at Storage.finished (E:\HOC\HK3\Vue\demo\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
at E:\HOC\HK3\Vue\demo\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
10% building 2/5 modules 3 active ...emo\node_modules\eslint-loader\index.js??ref--14-0!E:\HOC\HK3\Vue\demo\src\main.jsnode:internal/crypto/hash:67
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:130:10)
at module.exports (E:\HOC\HK3\Vue\demo\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (E:\HOC\HK3\Vue\demo\node_modules\webpack\lib\NormalModule.js:417:16)
at handleParseError (E:\HOC\HK3\Vue\demo\node_modules\webpack\lib\NormalModule.js:471:10)
at E:\HOC\HK3\Vue\demo\node_modules\webpack\lib\NormalModule.js:503:5
at E:\HOC\HK3\Vue\demo\node_modules\webpack\lib\NormalModule.js:358:12
at E:\HOC\HK3\Vue\demo\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (E:\HOC\HK3\Vue\demo\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
at Array. (E:\HOC\HK3\Vue\demo\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
at Storage.finished (E:\HOC\HK3\Vue\demo\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
at E:\HOC\HK3\Vue\demo\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
at E:\HOC\HK3\Vue\demo\node_modules\graceful-fs\graceful-fs.js:123:16
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v17.2.0
So, i tried to deploy my Express.Js app to my vps, but I get some error that refined to Error: getaddrinfo EAI_AGAIN undefined. The weird part is, it is doing just fine if I run this app on my localhost. Any body knows how to resolve this issue?
Here are the error log that I get.
events.js:187
throw er; // Unhandled 'error' event
^
Error: getaddrinfo EAI_AGAIN undefined
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26)
Emitted 'error' event on Client instance at:
at Backoff.<anonymous> (/home/user/deploy-folder/app-api/node_modules/ldapjs/lib/client/client.js:1228:12)
at Backoff.emit (events.js:210:5)
at Backoff.backoff (/home/user/deploy-folder/app-api/node_modules/ldapjs/node_modules/backoff/lib/backoff.js:41:14)
at /home/user/deploy-folder/app-api/node_modules/ldapjs/lib/client/client.js:1214:15
at f (/home/user/deploy-folder/app-api/node_modules/ldapjs/node_modules/once/once.js:25:25)
at Socket.onResult (/home/user/deploy-folder/app-api/node_modules/ldapjs/lib/client/client.js:1016:7)
at Object.onceWrapper (events.js:300:26)
at Socket.emit (events.js:210:5)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3) {
errno: 'EAI_AGAIN',
code: 'EAI_AGAIN',
syscall: 'getaddrinfo',
hostname: 'undefined'
I assume that by now you discovered the error, but in this particular case it seems that the variable you are using to setup ldap is not stated or resolves to undefined.
The proper way to do it according to the documentation is this:
var ldap = require('ldapjs');
var client = ldap.createClient({
url: 'ldap://127.0.0.1:1389'
});