问题:创建mongodb帐户时,出错 > db.addUser('jyu', 'aerohive') 2015-08-05T20:03:02.767+0800 E QUERY TypeError: Property 'addUser' of object admin is not a function #步骤1: 刚开始以为是权限问题,以非auth方式重启mongodb mongod --dbpath=/opt/mongodb/data --logpath=/opt/mongodb/…
Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>' 点开错误的文件,标注错误的地方是这样的一段代码: 就是module.exports; 百度查不到,google一查果然有. 原因是:The code above is ok. You can mix require and export. You can‘t mix import and module.exports.…