Error: error:0308010C:digital envelope routines::unsupported
npm run serve error: error:0308010C
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 (D:\Item\springbootVue\springboot\vue\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (D:\Item\springbootVue\springboot\vue\node_modules\webpack\lib\NormalModule.js:417:16)
at handleParseError (D:\Item\springbootVue\springboot\vue\node_modules\webpack\lib\NormalModule.js:471:10)
at D:\Item\springbootVue\springboot\vue\node_modules\webpack\lib\NormalModule.js:503:5
Solution:
set NODE_OPTIONS=–openssl-legacy-provider
D:\Item\springboot\vue>set NODE_OPTIONS=--openssl-legacy-provider
D:\Item\springboot\vue>npm run serve
> [email protected] serve
> vue-cli-service serve
It can run successfully
The main reason is the incompatibility of versions
Read More:
- [Solved] Node.js v17 npm run dev Error: opensslErrorStack
- [Solved] NUXT.JS. npm run dev Error: Error: error:0308010C:digital envelope routines::unsupported
- [Solved] NPM Start Project Error: ‘Error: error:0308010C:digital envelope routines::unsupported’
- Module build failed: Error: Couldn’t find preset “es2015” relative to directory
- [Solved] Error Rule can only have one resource source (provided resource and test + include + exclude)
- [Solved] Error Rule can only have one resource source (provided resource and test + include + exclude)
- [Solved] Syntax Error: Error: Loading PostCSS Plugin failed: Cannot find module ‘autoprefixer‘
- Error: Rule can only have one resource source (provided resource and test + include + exclude)
- [Solved] AES encryption in ie11 results in an error (missing ‘)‘
- [Solved] Vue3 npm ERR code ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC
- [Solved] Vue Error: Syntax Error: TypeError: Cannot set properties of undefined (setting ‘XXX’)
- [Solved] Error: ENOENT: no such file or directory, scandir ‘..\node_modules\node-sass\vendor‘
- Vue Install less Error: While resolving: [email protected]
- [Solved] vueCli 4.x Upgrade to 5.x Error: Progress Plugin Invalid Options
- [Solved] ERROR Error: Cannot find module ‘vue-loader-v16/package.json‘
- [Solved] VUE3 Error: Error: ENOSPC: System limit for number of file watchers reached
- React project is packaged and set as required Error [How to Solve]
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Solved] NPM node ERROR in main..js from Terser ChildProcessWorker.initialize Excaption
- [Solved] Vue Error: Module build failed: Error: No PostCSS Config found in