Skip to content

Commit

Permalink
Fix : fixed #2
Browse files Browse the repository at this point in the history
https://stackoverflow.com/a/69699772

You can try one of these:

1. Downgrade to Node.js v16.

You can reinstall the current LTS version from Node.js’ [website](https://nodejs.org/en/download/releases/).

You can also use [nvm](https://github.com/nvm-sh/nvm). For Windows, use [nvm-windows](https://github.com/coreybutler/nvm-windows).

2. Enable legacy OpenSSL provider.

On Unix-like (Linux, macOS, Git bash, etc.):
```
export NODE_OPTIONS=--openssl-legacy-provider
```
On Windows command prompt:
```
set NODE_OPTIONS=--openssl-legacy-provider
```
On PowerShell:
```
$env:NODE_OPTIONS = "--openssl-legacy-provider"
```
  • Loading branch information
snowdream committed Aug 20, 2023
1 parent d1f8e99 commit be3e1a7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,22 @@
"description": "A magical vue admin. An out-of-box UI solution for enterprise applications. Newest development stack of vue. Lots of awesome features",
"author": "Pan <panfree23@gmail.com>",
"scripts": {
"dev": "vue-cli-service serve",
"dev": "cross-env NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve",
"lint": "eslint --ext .js,.vue src",
"build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview",
"build:prod": "cross-env NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build",
"build:stage": "cross-env NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build --mode staging",
"preview": "cross-env NODE_OPTIONS=--openssl-legacy-provider node build/index.js --preview",
"new": "plop",
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",
"test:unit": "jest --clearCache && vue-cli-service test:unit",
"test:ci": "npm run lint && npm run test:unit"
"test:unit": "jest --clearCache && cross-env NODE_OPTIONS=--openssl-legacy-provider vue-cli-service test:unit",
"test:ci": "cross-env NODE_OPTIONS=--openssl-legacy-provider npm run lint && npm run test:unit"
},
"dependencies": {
"axios": "0.18.1",
"clipboard": "2.0.4",
"codemirror": "5.45.0",
"core-js": "3.6.5",
"cross-env": "^7.0.3",
"driver.js": "0.9.5",
"dropzone": "5.5.1",
"echarts": "4.2.1",
Expand Down
17 changes: 11 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit be3e1a7

Please sign in to comment.