node.js - SSL Error: CERT_UNTRUSTED while using npm command -


I am trying to install the Express Structure through the NPM command, but I am getting the following error.

Error message

  e: \ myFindings \ nodejs_programs \ node & gt; NPM Install -G Express NPM http: https://registry.npmjs.org/express NMP ERR! Error: SSL error: CERT_UNTRUSTED npm ERR! On client request. & Lt; Anonymous & gt; (C: \ Program Files \ nodejs \ node_modules \ npm \ node_modules \ request \ main.js: 409: 26) NMR ERR! On ClientRequest.g (events.js: 185: 14) NPM ERR! ClientRequest.EventEmitter.emit at (events.js: 88: 17) NPM ERR! HTTPParser.parserOnIncomingClient [incoming as]] (http.js: 1445: 7) NPM ERR! On HTTPParser.parserOnHeadersComplete [on Headers Complaints] (http.js: 111: 23) NPM ERR! On CleartextStream.socketOnData as [asdata] (http.js: 1356: 20) NPM ERR! On CleartextStream Cryptstream._press (tls.js: 396: 27) NPM ERR! On SecurePair.cycle (tls.js: 751: 20) NMP ERR! On the encrypted stream. CryptoStream.write (tls.js: 131: 13) NPM ERR! On Socket.ondata (stream.js: 38: 26) NPM ERR! [Error: SSL Error: CERT_UNTRUSTED] NPM ERR! You can report on this login: NPM ERR! & Lt; Http: //github.com/isaacs/npm/issues> NPM ERR! Or email it to: NPM ERR! & Lt; Npm-@googlegroups.com> NPM ERR! System Windows_NT 6.1.7601 NMP ERR! Command "C: \\ Program Files \\ node \\\\ node.exe" "C: \\ Program Files \\ node \\ node_module \\ npm \\ bin \\ npm-cLI.js" install " "" -G "Express" NPM ERR! Cwd E: \ myFindings \ nodejs_programs \ node NPM ERR! Node-v v0.8.0 nmp err! NMP-V 1.1.32 NPM ERR! Message SSL Error: CERT_UNTRUSTED npm ERR! NPM ERR! Additional logging details can be found in the following: NPM ERR! E: \ myFindings \ nodejs_programs \ node \ npm-debug.log NMP ERR! Code is not correct 0  

Help me sort

You can bypass https by using the commands given below:

  npm Config set strict -sl false  

or from https to the registry url Set or set the http:

  npm config as below: Registry = "http://registry.npmjs.org/"  

However, I believe that bypassing https is not a real solution, but we It can be used as a workaround


Comments