我正在 express.js 和 coffeescript 中制作我的第一个应用程序。代码位于: https ://github.com/findjashua/contactlist
当我尝试运行它时,我收到以下错误:
/Users/jashua/local/lib/node_modules/coffee-script/lib/coffee-script/helpers.js:216
codeLine = codeLine.slice(0, start) + colorize(codeLine.slice(start, end
^
TypeError: Cannot call method 'slice' of undefined
at Object.exports.prettyErrorMessage (/Users/jashua/local/lib/node_modules/coffee-script/lib/coffee-script/helpers.js:216:27)
at compileScript (/Users/jashua/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:199:25)
at /Users/jashua/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:143:18
at fs.js:266:14
at Object.oncomplete (fs.js:107:15)
我假设它与contacts.coffee有关,但想不出任何东西。有任何想法吗?