2017-08-11 1 views
0

依存関係ursaパッケージをインストールしようとしています。しかし、私はこのエラーが発生します:Node.js依存インストールで「証明書チェーンで自己署名入り証明書」を提供

self signed certificate in certificate chain 

どのようにこれを解決するためのアイデア?

私は正しいプロキシ設定を設定しており、「ノード・ホーズマン」依存関係もダウンロードできました。

入力は非常に高く評価されます。前もって感謝します。

>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 [email protected] No description 
npm WARN [email protected] No repository field. 
+0

あなたの接続をMITMしている可能性があります。おそらくプロキシなどですか? – mscdex

+0

はい。会社のプロキシがあります。しかし、npmrcファイルにプロキシURLを設定しました。また、strict-ssl = falseが設定されています。このエラーが発生しています。 –

答えて

1

この問題を回避するには、環境変数として以下の

NODE_TLS_REJECT_UNAUTHORIZED = 0

感謝を設定することです。

関連する問題