3.更改数据源 npm config set registry https://registry.npm.taobao.org git config --global https.sslverify "false" npm install --registry https://registry.npm.taobao.org install express set NODE_OPTIONS=--openssl-legacy-provider npm run dev...
打开IDEA 终端,直接输入 $env:NODE_OPTIONS="--openssl-legacy-provider" 1. 重新运行项目即可。
如下图所示解决方法:打开 package.json 文件,找到 “scripts” 对象,在 "dev" 属性中添加下面的信息set NODE_OPTIONS=--openssl-legacy-provider &添加后,如下所示{ "name": "DncZeus", "version": "2.0.0", "author": "Rector<lampo1024@qq.
"(set NODE_OPTIONS=--openssl-legacy-provider) && webpack --config webpack.config.js --mode=...
{ ... "scripts": { "dev": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", "build:prod": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build", "build:stage": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode ...
⚠️Starting on version 17, NodeJS uses OpenSSL v3 which has compatibility issues with Webpack@4. This isn't an issue for Webpack@5, however if you're using Node >= 17 and Webpack@4, to properly use this package you must ensure to set theNODE_OPTIONS=--openssl-legacy-providerenvi...
Windows platform support is now disabled in this plugin version, with CRYPTO provider (libTomCrypt) completely removed. This plugin version is no longer tested on Windows. For future consideration: enable Windows build again with encryption using a recent build of the OpenSSL crypto library A quick...
尝试手动或使用npm update更新npm包,以便所有包都更新到最新版本
"serve":"SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", "build":"SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build", "lint":"vue-cli-service lint", "i18n:report":"vue-cli-service i18n:report --src \"./src/**/*.?(js|vue)\" --locales ...
"serve":"SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", "build":"SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build", "lint":"vue-cli-service lint", "i18n:report":"vue-cli-service i18n:report --src \"./src/**/*.?(js|vue)\" --locales ...