我按照 express.js 指南中显示的方式安装 express。 http://expressjs.com/guide.html
运行“节点应用程序”后,我收到此错误:
/Users/xxx/Documents/work/node/app.js:3
var app = express();
^
ReferenceError: express is not defined
at Object.<anonymous> (/Users/xxx/Documents/work/node/app.js:3:11)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
nma:node xxx$