我用陨石安装了crypto-sha1包。现在,当我启动应用程序时, 出现以下错误:
Your app is crashing. Here's the latest log.
/Users/ian/myapp/queue4me/.meteor/local/build/programs/server/boot.js:186
}).run();
^
TypeError: Cannot read property 'lib' of undefined
at Package (packages/crypto-sha1/sha1.js:10)
at Package (packages/crypto-sha1/sha1.js:136)
at packages/crypto-sha1.js:154:4
at packages/crypto-sha1.js:161:3
at /Users/ian/myapp/queue4me/.meteor/local/build/programs/server/boot.js:155:10
at Array.forEach (native)
at Function._.each._.forEach
(/Users/ian/.meteor/tools/5bf1690853/lib/node_modules/underscore/underscore.js:79:11)
at /Users/ian/myapp/queue4me/.meteor/local/build/programs/server/boot.js:82:5
=> Exited with code: 8
=> Your application is crashing. Waiting for file change.
有什么想法吗?
答案 0 :(得分:1)
该程序包也需要CryptoJS
作为依赖项。所以你还必须添加https://atmosphere.meteor.com/package/crypto-base。
通常陨石为你做这件事,确保你拥有最新版本的陨石sudo -H npm install -g meteorite
答案 1 :(得分:0)
有时,您必须自己手动在smart.json中添加依赖包。