[Node.js] error:0308010C:digital envelope routines::unsupported

     

    Cypress를 설치해서 실행하려고 하니 다음과 같은 에러가 발생했다.

     

    에러메시지

    : error:0308010C:digital envelope routines::unsupported

    [start:react] Error: error:0308010C:digital envelope routines::unsupported
    [start:react]     at new Hash (node:internal/crypto/hash:71:19)
    [start:react]     at Object.createHash (node:crypto:133:10)
    [start:react]     at module.exports (설치경로/cypress-realworld-app/node_modules/webpack/lib/util/createHash.js:135:53)
    [start:react]     at NormalModule._initBuildHash (설치경로/cypress-realworld-app/node_modules/webpack/lib/NormalModule.js:417:16)
    [start:react]     at 설치경로/cypress-realworld-app/node_modules/webpack/lib/NormalModule.js:452:10
    [start:react]     at 설치경로/cypress-realworld-app/node_modules/webpack/lib/NormalModule.js:323:13
    [start:react]     at 설치경로/cypress-realworld-app/node_modules/loader-runner/lib/LoaderRunner.js:367:11
    [start:react]     at 설치경로/cypress-realworld-app/node_modules/loader-runner/lib/LoaderRunner.js:233:18
    [start:react]     at context.callback (설치경로/cypress-realworld-app/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    [start:react]     at 설치경로/cypress-realworld-app/node_modules/react-scripts/node_modules/babel-loader/lib/index.js:59:103 {
    [start:react]   opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
    [start:react]   library: 'digital envelope routines',
    [start:react]   reason: 'unsupported',
    [start:react]   code: 'ERR_OSSL_EVP_UNSUPPORTED'
    [start:react] }

    해결 방법

    Node 버전 맞는지 확인할 것 

    나는 로컬에 Node 18로 설치되어있는데, 해당 애플리케이션에서 필요한 버전은 16이었다.

    그래서 Node를 완전 삭제한 이후에 nvm으로 Node 버전을 변경했다. 

     

    출처

    Try running yarn start and using Node 16. Or the LTS version of Node.

    https://github.com/cypress-io/cypress-realworld-app/discussions/1237

     

    getting error when deploying the application · cypress-io/cypress-realworld-app · Discussion #1237

    ''' yarn dev yarn run v1.22.18 $ yarn db:seed:dev $ yarn predev:cognito:ci $ yarn copy:mock:awsexports && yarn copy:mock:awsexportses5 $ ncp scripts/mock-aws-exports.js src/aws-exports.js $ ncp scr...

    github.com

     

     

    728x90

    댓글