2017-08-27 73 views
0

我想添加bcryptjs包,并将其用在我的Meteor应用程序中。无法读取属性'_handle'未定义 - >流星+ Nodejs +试图运行bcrypt

我已经安装了bcrypt通过meteor npm install --save bcrypt它没问题。

我使用import bcrypt from 'bcrypt';开始使用bcrypt函数。

不过,我碰到这个问题,在控制台日志引发此错误:

Uncaught TypeError: Cannot read property '_handle' of undefined 
at modules.js?hash=0a5b088c5613f9a01f50dd13461d2cc4ca666b66:35733 
at Array.forEach (<anonymous>) 
at module.exports (modules.js?hash=0a5b088c5613f9a01f50dd13461d2cc4ca666b66:35732) 
at log.js (modules.js?hash=0a5b088c5613f9a01f50dd13461d2cc4ca666b66:29972) 
at fileEvaluate (modules-runtime.js?hash=8587d188e038b75ecd27ed2469a52b269e38fb62:343) 
at require (modules-runtime.js?hash=8587d188e038b75ecd27ed2469a52b269e38fb62:238) 
at node-pre-gyp.js (modules.js?hash=0a5b088c5613f9a01f50dd13461d2cc4ca666b66:27190) 
at fileEvaluate (modules-runtime.js?hash=8587d188e038b75ecd27ed2469a52b269e38fb62:343) 
at require (modules-runtime.js?hash=8587d188e038b75ecd27ed2469a52b269e38fb62:238) 
at bcrypt.js (modules.js?hash=0a5b088c5613f9a01f50dd13461d2cc4ca666b66:26761) 

挖了一下后,就出现了set-blocking节点包被扔这个错误(没有stream而包使用stream._handle)。

我找不到任何具体的答案w.r.t这里的流星背景。

有人可以帮忙吗?

在此先感谢。

回答

相关问题