0

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
mscdex
  • 104,356
  • 15
  • 192
  • 153
Venkat Y
  • 3
  • 2

2 Answers2

1

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

michelem
  • 14,430
  • 5
  • 50
  • 66
  • Did you run your command prompt as Admin? this error occurs mostly if you have a firewall that is blocking the cmd line installations. So run your command once as Admin. Question to you -> I generally use Mongoose. Why did you choose Mongodb? It is like the core mongo right? – Eshwar Prasad Yaddanapudi Aug 21 '15 at 17:00
0

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.

Venkat Y
  • 3
  • 2