2016-06-12 5 views
0

私のコードでnode-gcmを使用しようとすると、このエラーが発生します。私はそれを標準的な方法で要求する( 'node-gcm')node-gcm:TypeError:gcm.Messageが関数ではありません

var message = new gcm.Message(); 
      ^
TypeError: gcm.Message is not a function 
at Object.<anonymous> (/home/parashar/Downloads/opentsdb.js:13:15) 
at Module._compile (module.js:409:26) 
at Object.Module._extensions..js (module.js:416:10) 
at Module.load (module.js:343:32) 
at Function.Module._load (module.js:300:12) 
at Function.Module.runMain (module.js:441:10) 
at startup (node.js:139:18) 
at node.js:968:3 

誰かが私を助けてくれますか?

答えて

1

this issueと判断すると、アルファ版のnode-gcmが誤って最新の安定版として誤って公開されている可能性があります。

それが固定されるまで、あなたはあなたのコードが再び作業を取得するためにこれを試すことができます。

npm install [email protected] 

EDITthe issue should be fixed now

関連する問題