简体   繁体   中英

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

您可以尝试: npm config set strict-ssl false ,然后再次npm install mongodb

由于某种原因,链接中提供的所有解决方案均无法正常工作,因为我刚刚开始工作,所以我重新安装了整个设备,魔术般地安装了它,谢谢大家调查这个问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM