我正在尝试运行不同的聊天示例,例如 http://www.giantflyingsaucer.com/blog/?p=2535 我已经正确安装了 npm 和节点,并且工作正常。但是,当我尝试运行示例代码时,我遇到了这个错误,我无法解决它。
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'express'
at Function._resolveFilename (module.js:317:11)
at Function._load (module.js:262:25)
at require (module.js:346:19)
at Object.<anonymous> (/home/jeevandongre/Desktop/LearnBoost-socket.io-fbb268f/examples/chat/app.js:12:15)
at Module._compile (module.js:402:26)
at Object..js (module.js:408:10)
at Module.load (module.js:334:31)
at Function._load (module.js:293:12)
at Array.<anonymous> (module.js:421:10)
at EventEmitter._tickCallback (node.js:126:26)