如何在meteorjs app中使用npm-gcm

时间:2016-02-11 20:32:45

标签: meteor push-notification npm google-cloud-messaging

请在我的meteor js app for android中,我完全迷失了如何使用npm-gcm进行推送通知。我试图使用'meteor add meteorhacks:npm',但我一直收到以下错误报告:

W20160211-20:10:53.951(1)? (STDERR)           
W20160211-20:10:53.952(1)? (STDERR)   /Users/bbgg/.meteor/packages/meteor-tool/.1.1.10.1b51q9m++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20160211-20:10:53.952(1)? (STDERR)                         throw(ex);
W20160211-20:10:53.953(1)? (STDERR)                               ^
W20160211-20:10:53.953(1)? (STDERR) Error: Can't find npm module 'node-gcm'. Did you forget to call 'Npm.depends' in package.js within the 'npm-container' package?
W20160211-20:10:53.953(1)? (STDERR)     at Object.Npm.require (/Users/bbgg/GoodDay/.meteor/local/build/programs/server/boot.js:175:17)
W20160211-20:10:53.953(1)? (STDERR)     at Object.Meteor.npmRequire (packages/npm-container/index.js:2:1)
W20160211-20:10:53.953(1)? (STDERR)     at server/app.js:2:22
W20160211-20:10:53.954(1)? (STDERR)     at /Users/bbgg/GoodDay/.meteor/local/build/programs/server/app/server/app.js:45:4
W20160211-20:10:53.954(1)? (STDERR)     at /Users/bbgg/GoodDay/.meteor/local/build/programs/server/boot.js:242:10
W20160211-20:10:53.954(1)? (STDERR)     at Array.forEach (native)
W20160211-20:10:53.954(1)? (STDERR)     at Function._.each._.forEach (/Users/bbgg/.meteor/packages/meteor-tool/.1.1.10.1b51q9m++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20160211-20:10:53.954(1)? (STDERR)     at /Users/bbgg/GoodDay/.meteor/local/build/programs/server/boot.js:137:5
=> Exited with code: 8
W20160211-20:11:07.823(1)? (STDERR)           
W20160211-20:11:07.824(1)? (STDERR) /Users/bbgg/.meteor/packages/meteor-tool/.1.1.10.1b51q9m++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20160211-20:11:07.824(1)? (STDERR)                         throw(ex);
W20160211-20:11:07.824(1)? (STDERR)                               ^
W20160211-20:11:07.830(1)? (STDERR) Error: Can't find npm module 'node-gcm'. Did you forget to call 'Npm.depends' in package.js within the 'npm-container' package?
W20160211-20:11:07.830(1)? (STDERR)     at Object.Npm.require (/Users/bbgg/GoodDay/.meteor/local/build/programs/server/boot.js:175:17)
W20160211-20:11:07.831(1)? (STDERR)     at Object.Meteor.npmRequire (packages/npm-container/index.js:2:1)
W20160211-20:11:07.831(1)? (STDERR)     at server/app.js:2:22
W20160211-20:11:07.831(1)? (STDERR)     at /Users/bbgg/GoodDay/.meteor/local/build/programs/server/app/server/app.js:45:4
W20160211-20:11:07.831(1)? (STDERR)     at /Users/bbgg/GoodDay/.meteor/local/build/programs/server/boot.js:242:10
W20160211-20:11:07.831(1)? (STDERR)     at Array.forEach (native)
W20160211-20:11:07.831(1)? (STDERR)     at Function._.each._.forEach (/Users/bbgg/.meteor/packages/meteor-tool/.1.1.10.1b51q9m++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20160211-20:11:07.831(1)? (STDERR)     at /Users/bbgg/GoodDay/.meteor/local/build/programs/server/boot.js:137:5
=> Exited with code: 8
W20160211-20:11:20.323(1)? (STDERR)           
W20160211-20:11:20.324(1)? (STDERR) /Users/bbgg/.meteor/packages/meteor-tool/.1.1.10.1b51q9m++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20160211-20:11:20.324(1)? (STDERR)                         throw(ex);
W20160211-20:11:20.324(1)? (STDERR)                               ^
W20160211-20:11:20.331(1)? (STDERR) Error: Can't find npm module 'node-gcm'. Did you forget to call 'Npm.depends' in package.js within the 'npm-container' package?
W20160211-20:11:20.331(1)? (STDERR)     at Object.Npm.require (/Users/bbgg/GoodDay/.meteor/local/build/programs/server/boot.js:175:17)
W20160211-20:11:20.331(1)? (STDERR)     at Object.Meteor.npmRequire (packages/npm-container/index.js:2:1)
W20160211-20:11:20.331(1)? (STDERR)     at server/app.js:2:22
W20160211-20:11:20.331(1)? (STDERR)     at /Users/bbgg/GoodDay/.meteor/local/build/programs/server/app/server/app.js:45:4
W20160211-20:11:20.332(1)? (STDERR)     at /Users/bbgg/GoodDay/.meteor/local/build/programs/server/boot.js:242:10
W20160211-20:11:20.332(1)? (STDERR)     at Array.forEach (native)
W20160211-20:11:20.332(1)? (STDERR)     at Function._.each._.forEach (/Users/bbgg/.meteor/packages/meteor-tool/.1.1.10.1b51q9m++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20160211-20:11:20.332(1)? (STDERR)     at /Users/bbgg/GoodDay/.meteor/local/build/programs/server/boot.js:137:5
=> Exited with code: 8
=> Your application is crashing. Waiting for file change.

0 个答案:

没有答案