5
我在一个我经常在本地测试的应用程序中实现了一个npm模块(称为扳手)。这工作总是没有问题。然后我试图在我的服务器上安装扳手。npm模块已安装但不可用?
“故宫安装扳手”如预期,但只要谈到做工作“要求(‘扳手’)”,我得到以下错误:
> require("wrench")
Error: Cannot find module 'wrench'
at Function._resolveFilename (module.js:320:11)
at Function._load (module.js:266:25)
at require (module.js:348:19)
at [object Context]:1:1
at Interface.<anonymous> (repl.js:171:22)
at Interface.emit (events.js:64:17)
at Interface._onLine (readline.js:153:10)
at Interface._line (readline.js:408:8)
at Interface._ttyWrite (readline.js:585:14)
at ReadStream.<anonymous> (readline.js:73:12)
如果我跑“故宫LS”我可以看到
[email protected]
有什么我在这里失踪?
感谢,
埃利亚斯
你使用哪个版本的npm和node.js? – yojimbo87 2011-04-08 18:05:01