Firebase createUserWithEmailAndPassword方法在node.js中未定义

启动时出现问题..

我初始化了我的Firebase应用程序。 但auth()不起作用

var auth = firebase.auth(); console.log(auth.createUserWithEmailAndPassword) 

createUserWithEmailAndPassword返回undefined。

它也给function错误

 var email = "mail@mail.com" var password = 123 var auth = firebase.auth(); auth.createUserWithEmailAndPassword(email, password).then(function(result) { console.log(result) }).catch(function(error) { console.log(error) }); 

错误:

TypeError:auth.createUserWithEmailAndPassword不是一个函数

问题是什么?

在Firebase 3.0.5中,没有方法createUserWithEmailAndPassword用于node.js,请查看文档