-
Notifications
You must be signed in to change notification settings - Fork 30k
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
17.0.1 win10 x64 OpenSSL configuration error #40547
Comments
Thank you for your report. But could you provide more info about the steps that reproduce the bug? |
Same version, and for me it works ok, on Windows. It seems there is a problem in your path. Or some configuration. Can you execute this on powershell? cmd /c echo %PATH% |
Windows PowerShell
Copyright (C) Microsoft Corporation. Tous droits réservés.
Testez le nouveau système multiplateforme PowerShell https://aka.ms/pscore6
PS C:\Users\amela> cmd /c echo %PATH%
C:\Python310\Scripts\;C:\Python310\;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\src\flutter\bin;C:\ProgramData\chocolatey\bin;C:\Program Files\PostgreSQL\13\bin;C:\Program Files (x86)\Incredibuild;C:\Users\amela\AppData\Local\Android\Sdk\platform-tools;C:\Program Files\PuTTY\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\kubectl\;C:\Program Files (x86)\stripe;C:\Program Files\dotnet\;C:\Program Files (x86)\dotnet\;C:\Program Files\nodejs\;C:\Users\amela\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\amela\AppData\Local\Programs\Python\Python39\;C:\Users\amela\AppData\Local\Microsoft\WindowsApps;C:\Users\amela\AppData\Local\Programs\Microsoft VS Code\bin;C:\tools\dart-sdk\bin;C:\Users\amela\AppData\Roaming\Pub\Cache\bin;C:\Users\amela\AppData\Local\Pub\Cache\bin;C:\Users\amela\.dotnet\tools;C:\Users\amela\AppData\Roaming\npm
PS C:\Users\amela>
PS C:\Users\amela>
PS C:\Users\amela>
PS C:\Users\amela> cmd /c echo %OPENSSL_CONF%
C:\Program Files\PostgreSQL\psqlODBC\etc\openssl.cnf
PS C:\Users\amela> ps: with lts all work fine |
node v16.x uses openssl v1.1.1, node v17.x uses openssl v3, In a powershell, try to execute: $env:OPENSSL_CONF = '' |
it works but it was mainly to prevent that the installer has a problem / forgetfulness |
Ok. So I think node v17 is ok. |
what I'm trying to say is that node v17 should not be affected by the configuration of another program (https://www.npmjs.com/package/postgres, or dbeaver) this is I find a serious problem because either it works, or it does not work and if it does not work when we have just installed it is that there is a problem (unless there is a configuration to do that is explicitly described) the "it's work on my computer" must not exist only the "it's work" must have to exist with an installer |
All other programs will be affected if you have a OPENSSL_CONF global variable. Because node loads opensslv3 and openssl3 try to load his config from OPENSSL_CONF. So it is a problem of opensslv3, not really a problem of node.js. Note that I don't belong to node.js, I only express on my own. |
In fact, I have postgres 14, and have tried to install psqlodbc 13 from https://www.postgresql.org/ftp/odbc/versions/msi/ |
Your software is going to be affected by the variables in its environment. This is not a bug. It's a user misconfiguration. |
I thought that this problem came from the installer because it is the only one that created this problem for me and for your information I had not created any openssl conf but I think I know what the problem is and yes it does not come at all from here (this thing will have me bored until the end) Sorry for the inconvenience ! |
Perhaps you don't created the OPENSSL_CONF, but some program have done it. It's not an impossible thing to do what people say to you. But you have to swim against the river. The world is not against you, you are against the rest of the world. |
I installed postgreSQL14 -- It sets OPENSSL_CONF to C:\Program Files\PostgreSQL\psqlODBC\etc\openssl.cnf so I get the same error with nodejs as mentioned in the topic of this issue set OPENSSL_CONF= before using node fixes it I guess the question is whether its helpful that both programs use the same environment variable |
I ran into the same problem. If NPM doesn't need the variable to be set anyway, why is it completely breaking npm? This is not a case of misconfiguration, I also think it should be fixed or worked around by the NPM/Node team. |
The workaround is as Er4twXz said, |
Please report this as an error to whoever builds the PostgreSQL 14 package. This is an error that they leak this config parameter to the system. It should only be set to whatever postgres applications require it and nothing else. It's not a Node issue that postgres installer breaks your system. Not pointing fingers or anything 😺 |
I'll try. You're probably right about it being in the wrong place. However, I'm still curious why a system variable that doesn't seem to affect Node would completely break it. |
It affects ALL software that use OpenSSL. Both Node and PostgreSQL link with OpenSSL. If you install something else that uses OpenSSL, it will get affected by this system variable setting as well |
In Windows, If I set But If I set You must look how to do the same on Linux. WorkaroundCreate a
Then you must do So, this And you can do the same with npm, creating a file mynpm. I don't have a Linux to try, but this is the idea. |
I also had the same problem but I do have postgres installed. Upon checking, I noticed that there was the OPENSSL_CONF environment variable. I just deleted it and it worked for me. |
The GH Actions environment does not yet appear to be handling the issue at nodejs/node#40547, so turn off Node 18 testing for the moment.
Create a empty file named openssl.cnf in C:\Program Files\PostgreSQL\psqlODBC\etc\ this directory. It resolve my problem after creating this empty configuration file in PostgreSQL ODBC. |
@zaidraed It works~!!! Thank you. |
@zaidraed It works~!!! Thank you. ++ |
I am getting a similar error as @mortifia had, but did not have a similar output to @nassau-t 's question. Similarly, the solutions that have been suggested did not work. Both npm and Node are installed. Do y'all have an idea on what I could try next? My output to @nassau-t 's question is below:
|
Try to set OPENSSL_CONF to some directory, and create there an empty openssl.cnf file. |
Thank you for the suggestion! It didn't end up working, as the error turned out to be with the version of npm that I was using instead of the OPENSSL_CONF. For anyone that runs into a similar issue when trying to use create-react-app, follow the following steps to solve the error:
Your web app should be built. If it isn't, check that 5.0.1 is the latest version of npm and check the following resources below: |
Version
17.0.1
Platform
Microsoft Windows NT 10.0.19043.0 x64
Subsystem
No response
What steps will reproduce the bug?
npm
bug
How often does it reproduce? Is there a required condition?
just install
What is the expected behavior?
to work
What do you see instead?
No response
Additional information
powershell and vscode
The text was updated successfully, but these errors were encountered: