我已经在我的 Nodejs 应用程序上安装了 Authy,它运行良好,直到突然我从插件内部收到这些大错误消息。在我看来,它缺少copy
模块,但npm install copy
npm update copy
没有帮助。
[TypeError: Object function (comparer) {
for(var i=0; i < this.length; i++) {
if(comparer(this[i])) return true;
}
return false;
} has no method 'copy']
TypeError: Object function (comparer) {
for(var i=0; i < this.length; i++) {
if(comparer(this[i])) return true;
}
return false;
} has no method 'copy'
at IncomingMessage.<anonymous> (/home/.../node_modules/authy-node/authy.js:166:13)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:920:16
at args.(anonymous function) (/home/.../node_modules/nodetime/lib/core/proxy.js:131:20)
at process._tickCallback (node.js:415:13)
是否可能没有正确安装副本...?
$ npm install copy
npm WARN package.json copy@0.0.1 No repository field.
npm WARN package.json eyes@0.1.8 No repository field.
npm http GET http://registry.npmjs.org/copy
npm http 304 http://registry.npmjs.org/copy
copy@0.0.1 node_modules/copy