-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Impossible to serve with Node v17.0.1 #6770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Seems a webpack issue webpack/webpack#14532 (comment) |
Also running into this issue while trying to build a plugin:
|
Fixed in v5.0.0-beta.7 |
|
Downgrading to Node:16.13.0 worked for me |
I just uninstalled @vue/cli 4.5.15 and installed @vue/cli 5.0.0-rc.0 and am getting the error, under NodeJS 17.0.1. The solution presented by @mrichman worked for me, but I worry about making sure to remove this in timely way when webpack/openssl resolve this... |
Works for me with:
|
@sergiocabral, I have seen that solution, but I also thought it had been addressed in v5.0.0-beta.7 per @sodatea? |
@Miguel-Bento-Github |
@mhavid You are commenting on a closed issue that has already been fixed. |
the SET NODE_OPTIONS strategy didn't work for me 😔, but what DID work was.... |
On Windows who can do this on CMD using |
I have updated this in my package.json but I have not pushed the package.json file to my heroku. I want to ask, will pushing this code to my heroku master break the website or is it safe to do so? I am asking because ever since I have upgraded to node v17.3.1 I have noticed a lot of dependencies have updated in my package-lock.json. I am not sure if updating and pushing both these files will build a functioning version on my live heroku server as well. |
@raja-chaudhary unfortunately that's a risk-weight analysis you need to do yourself, no one here can give you the answer to that. Just try on another test instance and see if it works. It's easy if you have a staging environment ;) |
Same issue with me, solved by doing this: unistall node.js. Install node |
It worked, I just had to change |
Thanks, @Voucik, I used "SET NODE_OPTIONS ", it was Done for me |
not working yet |
Where to add this line? |
@leolux in the package.json to the build scripts. |
how to add this environment variable in Firebase Hosting CICD ? unset NODE_OPTIONS |
Using Docker, I had to add ENV NODE_OPTIONS=--openssl-legacy-provider in my |
Nuxt / Node 18 being deployed on AWS Elastic BeanStalk. I needed to create a predeploy hook with the flag to get it to run. package.json scripts update did not work for me. But the below method did.
|
what voucik has said helped me |
…ue-cli version. Issue: Impossible to serve with Node v17.0.1 vuejs/vue-cli#6770
Version
5.0.0-beta.6
Environment info
Steps to reproduce
vue-cli-service serve
scriptWhat is expected?
Normal compilation of the app
What is actually happening?
Exit code 1
The following object appears in the console
From https://medium.com/the-node-js-collection/node-js-17-is-here-8dba1e14e382
we can see this issue is due to Open SSL 3.0
From the article:
"If you hit an
ERR_OSSL_EVP_UNSUPPORTED
error in your application with Node.js 17, it’s likely that your application or a module you’re using is attempting to use an algorithm or key size which is no longer allowed by default with OpenSSL 3.0. A new command-line option,--openssl-legacy-provider
, has been added to revert to the legacy provider as a temporary workaround for these tightened restrictions."The text was updated successfully, but these errors were encountered: