Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js依赖项安装提供“证书链中的自签名证书”_Node.js_Ssl_Npm_Certificate - Fatal编程技术网

Node.js依赖项安装提供“证书链中的自签名证书”

Node.js依赖项安装提供“证书链中的自签名证书”,node.js,ssl,npm,certificate,Node.js,Ssl,Npm,Certificate,我正在尝试安装依赖项ursa包。但我得到了这个错误: self signed certificate in certificate chain 有没有办法解决这个问题 我已经设置了正确的代理设置,并且能够下载节点horseman依赖项 任何意见都将不胜感激。提前谢谢 >node --version v6.9.1 >npm install ursa ...\node_modules\ursa>if not defined npm_config_node_gyp (node "C

我正在尝试安装依赖项ursa包。但我得到了这个错误:

self signed certificate in certificate chain
有没有办法解决这个问题

我已经设置了正确的代理设置,并且能够下载节点horseman依赖项

任何意见都将不胜感激。提前谢谢

>node --version
v6.9.1
>npm install ursa
...\node_modules\ursa>if not defined npm_config_node_gyp (node "C:\Users
\xxxxxxxxxxx\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: self signed certificate in certificate chain
gyp ERR! stack     at Error (native)
gyp ERR! stack     at TLSSocket.<anonymous> (_tls_wrap.js:1062:38)
gyp ERR! stack     at emitNone (events.js:86:13)
gyp ERR! stack     at TLSSocket.emit (events.js:185:7)
gyp ERR! stack     at TLSSocket._finishInit (_tls_wrap.js:586:8)
gyp ERR! stack     at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\\\software\\node.exe" "C:\\Users\\xxxxxxxxxxx\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\xxxxxxxxxxx\git\source_code_\ursa
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN MobPhantom@1.0.0 No description
npm WARN MobPhantom@1.0.0 No repository field.

此问题的解决方法是将以下设置为环境变量

节点\u TLS\u拒绝\u未经授权=0


谢谢。

此问题的解决方法是将以下设置为环境变量

节点\u TLS\u拒绝\u未经授权=0


谢谢。

可能有什么东西破坏了你的连接,可能是代理或类似的东西?是的。有一个公司代理。但我也在npmrc文件中设置了代理url。还设置了严格的ssl=false。我仍然收到此错误。可能有什么东西破坏了你的连接,可能是一个代理或类似的东西?是的。有一个公司代理。但我也在npmrc文件中设置了代理url。还设置了严格的ssl=false。我仍然收到这个错误。我到处寻找解决方案,这是唯一有效的方法。谢谢,我到处寻找解决办法,这是唯一有效的办法。非常感谢。