introduction:
Recently, after upgrading the nodejs version to v18.7.0, the project report digital envelope routes::unsupported
was launched. After many searches, the solution was finally found.
reason:
node.js version problem
Because of the recent release of OpenSSL 3.0 in node.js V17, OpenSSL 3.0 adds strict restrictions on allowed algorithms and key sizes, which may have some impact on the ecosystem. Therefore, previous projects will report an error after upgrading the nodejs version
Solution:
Method 1:
export NODE_OPTIONS=--openssl-legacy-provider
Method 2:
Modify package.json, add set NODE_OPTIONS=–openssl-legacy-provider
before the relevant build command
"scripts": {
"serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
"build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build"
},
Read More:
- How to Solve VUE Error: Mixed spaces and tabs
- NPM run dev runs the Vue project and reports an error: Node Sass does not yet support your current environment
- [Solved] error C:\Users\HP\Desktop\VueProject\vue_cli\node_modules\node-sass: Command failed.Exit code: 1
- [Solved] Vue Project startup error: no eslint configuration found
- How to Solve Node start error listen eacces 0.0.0.0:810
- [Solved] Vue Project Startup Error: getaddrinfo ENOTFOUND xxx
- How to Solve MAC electronic installation dependent startup error
- Vue: How to Solve Eslint error
- How to Solve Vue3 jweixin-module Error
- VUE: How to Solve NPM Always Install Error
- How to Solve Vue cli configuration SCSS global variable error
- How to Solve Vue add element Install Error
- Vue: How to Solve error avoided redundant navigation to current location: “/xxx”
- How to Solve VUE Error: Avoid mutating a prop directly since the value will be overwritten …
- How to Solve Vue3 Import lodash error
- How to Solve Vue editor bridge error
- How to Solve @Vue/cli3.X Using less Error
- How to Solve “Vue is not defined” Error
- How to Solve Vue cli syntax Close Error
- How to Fix Taro SwipeAction Not Working Issue