I’m doing a Meteor project that requires recurring events, and I’m having a problem getting the moment-recur package to work (gilbertwat:moment-recur). If I create a new project, and then add momentjs:moment and gilbertwat:moment-recur, then the recur package throws an error at startup saying that it can’t find moment. Moment is working correctly both in my app and in the console. I did some googling and there seems to be some issue with local vs global installations of moment when the moment-recur is installed as an NPM. Honestly, I’m not familiar enough with Meteor packages to know if this has anything to do with it or not. Anybody have any ideas? I’m stuck. Thanks.
Here’s the error at the command line when I try to start Meteor:
=> Started proxy.
=> Started MongoDB.
=> Exited with code: 8
W20160202-09:23:22.927(-8)? (STDERR)
W20160202-09:23:22.927(-8)? (STDERR) C:\Users\Jerimiah\AppData\Local.meteor\packages\meteor-tool\1.1.10\mt-os.windows.x86_32\dev_bundle\ser
ver-lib\node_modules\fibers\future.js:245
W20160202-09:23:22.927(-8)? (STDERR) throw(ex);
W20160202-09:23:22.927(-8)? (STDERR) ^
W20160202-09:23:22.927(-8)? (STDERR) Error: Can’t find moment
W20160202-09:23:22.927(-8)? (STDERR) at Error ()
W20160202-09:23:22.927(-8)? (STDERR) at Package (packages/gilbertwat_moment-recur/moment-recur.js:15:1)
W20160202-09:23:22.927(-8)? (STDERR) at hasModule (packages/gilbertwat_moment-recur/moment-recur.js:7:1)
W20160202-09:23:22.927(-8)? (STDERR) at Package (packages/gilbertwat_moment-recur/moment-recur.js:9:1)
W20160202-09:23:22.927(-8)? (STDERR) at C:\Users\Jerimiah\MeteorDev\recur-test.meteor\local\build\programs\server\packages\gilbertwat_m
oment-recur.js:768:4
W20160202-09:23:22.927(-8)? (STDERR) at C:\Users\Jerimiah\MeteorDev\recur-test.meteor\local\build\programs\server\packages\gilbertwat_m
oment-recur.js:775:3
W20160202-09:23:22.927(-8)? (STDERR) at C:\Users\Jerimiah\MeteorDev\recur-test.meteor\local\build\programs\server\boot.js:242:10
W20160202-09:23:22.927(-8)? (STDERR) at Array.forEach (native)
W20160202-09:23:22.927(-8)? (STDERR) at Function..each..forEach (C:\Users\Jerimiah\AppData\Local.meteor\packages\meteor-tool\1.1.10\m
t-os.windows.x86_32\dev_bundle\server-lib\node_modules\underscore\underscore.js:79:11)
W20160202-09:23:22.927(-8)? (STDERR) at C:\Users\Jerimiah\MeteorDev\recur-test.meteor\local\build\programs\server\boot.js:137:5