2

I want create electron app with vue js but I can't start : I execute this code for run my app : "cross-env NODE_OPTIONS='--openssl-legacy-provider' vue-cli-service electron:serve"

Return an error : electron: --openssl-legacy-provider is not allowed in NODE_OPTIONS

I have tried to change node version (18.2.1 / 18.2.0 / 19.2.0 / 17.9.1) It's same

More information :

  "dependencies": {
    "core-js": "^3.8.3",
    "cross-env": "^7.0.3",
    "vue": "^3.2.13"
  },
  "devDependencies": {
    "@babel/core": "^7.12.16",
    "@babel/eslint-parser": "^7.12.16",
    "@vue/cli-plugin-babel": "~5.0.0",
    "@vue/cli-plugin-eslint": "~5.0.0",
    "@vue/cli-service": "~5.0.0",
    "electron": "^13.0.0",
    "electron-devtools-installer": "^3.1.0",
    "eslint": "^7.32.0",
    "eslint-plugin-vue": "^8.0.3",
    "vue-cli-plugin-electron-builder": "~2.1.1"
  },
Arnaud
  • 121
  • 2
  • 6
  • You should remove that env. variable `NODE_OPTIONS='--openssl-legacy-provider'` and try again – Asesh Dec 12 '22 at 03:35
  • If I don't use Node options I have an other error. https://stackoverflow.com/questions/71033802/error-error0308010cdigital-envelope-routinesunsupported-next-js/71033803#71033803 – Arnaud Dec 13 '22 at 18:00
  • 1
    Hello @Arnaud, did you manage to fix it? I am also running into same problem. – tbhaxor Feb 08 '23 at 05:30
  • We're suffering from the intersection of Mac M-series chips lacking support for the new openssl options used by node, and electron objecting to forcing node into the older openssl configuration. Downgrading versions is sidestepping the security reasons for Node and Electron's transitions. Long-term we need to configure the Mac to run a sufficient version of openssl. – Kevin McDonough Jul 10 '23 at 17:48

0 Answers0