From 8b6a2781b629f61704161d3826e03a44a4778811 Mon Sep 17 00:00:00 2001 From: Sangeetha Date: Thu, 12 Oct 2023 07:42:24 +0100 Subject: [PATCH 1/2] Added --openssl-legacy-provide to NODE_OPTIONS on serve and build scripts in package.json to resolve the error digital envelope routines::unsupported --- README.md | 2 ++ package.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8ee704bf..7e895d61 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index f8965f18..bf0d7ad2 100644 --- a/package.json +++ b/package.json @@ -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", From 3abd759c430fa9bc9eaf86d97fe50be9ef9bf7d5 Mon Sep 17 00:00:00 2001 From: Sangeetha Date: Thu, 12 Oct 2023 14:26:00 +0100 Subject: [PATCH 2/2] Changed manual build workflow action to use .nvmrc file --- .github/workflows/manual_build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/manual_build.yml b/.github/workflows/manual_build.yml index 9fce7a8f..0d3a1494 100644 --- a/.github/workflows/manual_build.yml +++ b/.github/workflows/manual_build.yml @@ -21,11 +21,11 @@ jobs: name: Build Release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v2 with: - node-version: '14' + node-version-file: '.nvmrc' - name: Install run: yarn install - name: Compile build