Bug

[Node] opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error’ ]

brightlightkim 2022. 3. 31. 11:37

Check which version of node you are using when you build the vue-cli or node.

 

$ npm run serve

> front-end@0.1.0 serve
> vue-cli-service serve

 INFO  Starting development server...
10% building 2/2 modules 0 activeError: error:0308010C:digital envelope routines::unsupported
.....
.....
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v17.7.2
$ node --version
v17.7.2
$ nvm install v16
v16.14.2 is already installed.
Now using node v16.14.2 (npm v8.5.0)
$ nvm use 16 
Now using node v16.14.2 (npm v8.5.0)
$ node --version
v16.14.2
$ npm run serve

> front-end@0.1.0 serve
> vue-cli-service serve

 INFO  Starting development server...
98% after emitting CopyPlugin

 DONE  Compiled successfully in 51239ms                8:34:34 PM

  App running at:
  - Local:   http://localhost:8080/ 
  - Network: http://172.24.238.44:8080/

  Note that the development build is not optimized.
  To create a production build, run npm run build.