注意到了嗎?最近expressjs升版了,目前版本是Express 3.0.0 Alpha1 # npm list express npm WARN ls doesn't take positional args. Try the 'search' command /root ├── ejs@0.7.1 ├─┬ express@3.0.0alpha1 │ ├── commander@0.5.2 │ ├─┬ connect@2.1.2 │ │ ├── crc@0.1.0 .... │ └── semver@1.0.13 ├── sprintf@0.1.1 └─┬ ssh-agent@0.1.0 └── ctype@0.5.0 但是使用了新的版本,執行上卻出現不明的Exception... 仔細檢查與舊版本間的差異...發現2.x跟3.x的版本有不少地方不一樣 直覺下做了幾個測試: 1. 2.x執行3.x所產生程式碼....無法執行,3.x的一些宣告2.x不認得,應該是function有做過修改... # node app.js node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: object is not a function at Object.CALL_NON_FUNCTION (native) at Object.<anonymous> (/root/TestPrj2/app.js:10:11) at Module._compile (module.js:441:26) at Object..js (module.j...