Node.js mongodb set default safe variable

前端 未结 3 1867
暗喜
暗喜 2021-02-19 14:48

I am trying to run a Node.js script locally and it\'s giving me this error message:

===============================================================         


        
3条回答
  •  终归单人心
    2021-02-19 15:02

    This worked for me!

    var db = new Db((new DbServer('127.0.0.1', 27017), {w:-2,journal:false,fsync:false,safe: false})
    

提交回复
热议问题