Skip to content

Commit

Permalink
web ui fix digital envelope error at newer node.js versions; update js
Browse files Browse the repository at this point in the history
  • Loading branch information
swoellauer committed Mar 3, 2023
1 parent 2ac20cf commit a12868d
Show file tree
Hide file tree
Showing 3 changed files with 1,203 additions and 896 deletions.
71 changes: 48 additions & 23 deletions web_src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,22 @@
```bash
npm install
```

### New node.js versions
Set env variable before running build commands

Windows
```
set NODE_OPTIONS=--openssl-legacy-provider
```


Ubuntu
```bash
export NODE_OPTIONS=--openssl-legacy-provider
```


### Compiles and hot-reloads for development
## Compiles and hot-reloads for development
```bash
npm run serve
```

### Compiles and minifies for production
## Compiles and minifies for production
```bash
npm run build
```

### Lints and fixes files
## Lints and fixes files
```bash
npm run lint
```

### download/update google fonts and icons
## download/update google fonts and icons

By command line:
```bash
Expand All @@ -58,14 +42,55 @@ const GetGoogleFonts = require('get-google-fonts');
new GetGoogleFonts().download('https://fonts.googleapis.com/css?family=Roboto:100:300,400,500,700,900|Material+Icons')
```

### check security of dependencies
## check security of dependencies

```bash
npm audit
```

### check for updates of dependencies
## check for updates of dependencies

```bash
npm outdated
```
```


## New node.js versions

Fix at newer node.js versions (e.g. 18) for error "digital envelope routines::unsupported":

Fix is integrated in file "package.json", runs on windows only.
To run on ubuntu see: https://gankrin.org/how-to-fix-error-digital-envelope-routinesunsupported-in-node-js-or-react/


Or set env variable before running build commands. (For this you need to remove the fix in "package.json" file first.)

Replace the (for Windows fixed) section:
```JSON
"scripts": {
"serve": "set NODE_OPTIONS=--openssl-legacy-provider & vue-cli-service serve",
"build": "set NODE_OPTIONS=--openssl-legacy-provider & vue-cli-service build",
"lint": "set NODE_OPTIONS=--openssl-legacy-provider & vue-cli-service lint"
},
```

with
```JSON
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"

},
```

Windows console cmd:
```
set NODE_OPTIONS=--openssl-legacy-provider
```


Ubuntu console bash:
```bash
export NODE_OPTIONS=--openssl-legacy-provider
```
Loading

0 comments on commit a12868d

Please sign in to comment.