If you get this error after installing nodejs in windows 10, your ssl is not pointing correctly
So you must point to the correct path echo %OPENSSL_CONF% (see your openssl path)
set OPENSSL_CONF=C:\OpenSSL\bin\ OpenSSL .cnf (set your OpenSSL path)
Then enter
Code npm – v
In cmd again
You should be able to operate smoothly.