我正在使用以下套餐:
mrt add bootstrap-3
mrt add iron-router
mrt add angularjs
当我用mrt启动我的应用程序时,我收到以下错误..
====
W2042-20:49:50.746(5.5)? (STDERR) /home/aaa/.meteor/tools/0b2f28e18b/lib/node_modules/fibers/future.js:173
W2042-20:49:50.747(5.5)? (STDERR) throw(ex);
W2042-20:49:50.747(5.5)? (STDERR) ^
W2042-20:49:50.750(5.5)? (STDERR) Error: Cannot find module 'connect'
W2042-20:49:50.750(5.5)? (STDERR) at Function.Module._resolveFilename (module.js:338:15)
W2042-20:49:50.751(5.5)? (STDERR) at Function.Module._load (module.js:280:25)
W2042-20:49:50.751(5.5)? (STDERR) at Module.require (module.js:364:17)
W2042-20:49:50.751(5.5)? (STDERR) at require (module.js:380:17)
W2042-20:49:50.751(5.5)? (STDERR) at Object.Npm.require (/home/aaa/dev/APP/.meteor/local/build/programs/server/boot.js:87:18)
W2042-20:49:50.752(5.5)? (STDERR) at Package (packages/angularjs/server.js:1)
W2042-20:49:50.752(5.5)? (STDERR) at packages/angularjs.js:67:4
W2042-20:49:50.752(5.5)? (STDERR) at packages/angularjs.js:74:3
W2042-20:49:50.753(5.5)? (STDERR) at /home/aaa/dev/MEREBAPU/.meteor/local/build/programs/server/boot.js:154:10
W2042-20:49:50.753(5.5)? (STDERR) at Array.forEach (native)
=> Exited with code: 8
答案 0 :(得分:0)
angularjs包不适用于您正在使用的Meteor版本。
angularjs包使用 meteor_bootstrap .require来加载npm包,新的方法是Npm.require。
有人已向Meteor_angularjs团队提交issue请求修复。根据他们的commit历史和他们标签的混乱状态,我猜团队认为他们已经修复了它但出了点问题。
您可以与Meteor_angularjs团队合作修复已发布的修补程序,也可以将angularjs安装为private package。要做到这一点: