Venkat Y
Venkat Y

Reputation: 3

unable to install Mongo module using npm

I am new to Node, I am trying to install the Mongo module using NPM and I am getting an error, below is the error and also the log file.

C:\Program Files\nodejs>npm install mongodb
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "mongodb"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code SELF_SIGNED_CERT_IN_CHAIN
npm ERR! self signed certificate in certificate chain
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!    
npm ERR! Please include the following file with any support request:
npm ERR!     C:\Program Files\nodejs\npm-debug.log

Upvotes: 0

Views: 376

Answers (2)

Venkat Y
Venkat Y

Reputation: 3

For some reason none of the solutions presented in the link did not work , becuase i just started my work I reinstalled the whole thing again an magically it got installed, Thank you everyone for looking into the question.

Upvotes: 0

michelem
michelem

Reputation: 14590

You can try with: npm config set strict-ssl falseand then run again npm install mongodb

Upvotes: 1

Related Questions