无法安装@angular/cli,Angular OpenSSL 配置错误

Unable to install @angular/cli , Angular OpenSSL configuration error

我正在尝试以管理员身份安装 Angular CLI,运行,但出现以下错误

npm ERR! code 2
npm ERR! path C:\Windows\system32\node_modules\@angular\cli
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node 
./bin/postinstall/script.js
npm ERR! OpenSSL configuration error:
npm ERR! 74160000:error:80000002:system library:BIO_new_file:No such 
 file or 
directory:c:\ws\deps\openssl\openssl\crypto\bio\bss_file.c:67:calling 
 fopen(C:\Program 
Files\PostgreSQL\psqlODBC\etc\openssl.cnf, rb)
npm ERR! 74160000:error:10000080:BIO routines:BIO_new_file:no such 
file:c:\ws\deps\openssl\openssl\crypto\bio\bss_file.c:75:
npm ERR! 74160000:error:07000072:configuration file routines:def_load:no 
such 
file:c:\ws\deps\openssl\openssl\crypto\conf\conf_def.c:179:

我遇到了同样的问题。实际上,我已经为 postgre sql 添加了 OPENSSL,这就是导致此错误的原因。顺便说一下,我正在安装 ionic CLI。 因此,转到环境变量、系统变量并搜索 OPENSS_CONF 并将其删除。对我来说,我删除了它并且它起作用了。