Node.js 如何将本地发卡机构证书添加到npm/gyp
我的设备上安装了web筛选器。提供my web filter的公司在我的机器上安装了一个自定义证书,以某种方式与ssl交互,并使他们能够过滤我的web访问(浏览、http请求等) 我遇到的问题是,当我尝试在我的节点应用程序中安装npm包时,我收到一个错误,即无法检索本地颁发者证书 我是否可以将证书添加到npm,以便它可以“获取”或检索它,以解决我的问题 以下是我的错误日志的相关部分:Node.js 如何将本地发卡机构证书添加到npm/gyp,node.js,windows,ssl,npm,Node.js,Windows,Ssl,Npm,我的设备上安装了web筛选器。提供my web filter的公司在我的机器上安装了一个自定义证书,以某种方式与ssl交互,并使他们能够过滤我的web访问(浏览、http请求等) 我遇到的问题是,当我尝试在我的节点应用程序中安装npm包时,我收到一个错误,即无法检索本地颁发者证书 我是否可以将证书添加到npm,以便它可以“获取”或检索它,以解决我的问题 以下是我的错误日志的相关部分: PS C:\Users\someUser\OneDrive\Desktop\someDirectory>
PS C:\Users\someUser\OneDrive\Desktop\someDirectory> npm i bcrypt
> bcrypt@5.0.0 install C:\Users\someUser\OneDrive\Desktop\someDirectory\node_modules\bcrypt
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for bcrypt@5.0.0 and node@12.18.3 (node-v72 ABI, unknown) (falling back to source
compile with node-gyp)
node-pre-gyp WARN Hit error unable to get local issuer certificate
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: unable to get local issuer certificate
gyp ERR! stack at TLSSocket.onConnectSecure (_tls_wrap.js:1501:34)
gyp ERR! stack at TLSSocket.emit (events.js:315:20)
gyp ERR! stack at TLSSocket._finishInit (_tls_wrap.js:936:8)
gyp ERR! stack at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:710:12)
gyp ERR! System Windows_NT 10.0.18363
谢谢:-)