Skip to content

Commit

Permalink
Added --openssl-legacy-provide to NODE_OPTIONS on serve and build scr…
Browse files Browse the repository at this point in the history
…ipts in package.json to resolve the error digital envelope routines::unsupported
  • Loading branch information
Sangeetha-Bheeman committed Oct 12, 2023
1 parent 5d7d929 commit 8b6a278
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ resolutions to fix the version incompatibility issue with node.
yarn run serve
```

Added --openssl-legacy-provide to NODE_OPTIONS on serve and build scripts in package.json to resolve the error:0308010C:digital envelope routines::unsupported discussed here https://github.com/vuejs/vue-cli/issues/6770. This can be removed later when the issue is resolved.

### Compiles and minifies for production

```shell
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "2.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"serve": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
"build": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
"test:unit": "vue-cli-service test:unit",
"test:e2e": "vue-cli-service test:e2e",
"lint": "vue-cli-service lint",
Expand Down

0 comments on commit 8b6a278

Please sign in to comment.