Im遵循教程here。我在此時試圖運行該項目。我得到一個錯誤,說沒有定義的模板引擎。本教程讓我們刪除app.useAzure Node.JS教程默認模板引擎
以下是我嘗試瀏覽本教程時出現的控制檯錯誤。只是爲了確定我回到了三次。我犯了同樣的錯誤。我注意到在History.md中已經解決了這個問題,但是我無法弄清楚如果我應該對這些信息做任何事情。你能建議嗎?
這是教程:https://azure.microsoft.com/en-us/documentation/articles/documentdb-nodejs-application/
我得到試圖NPM運行開始看到TODO UI錯誤。當我在本教程開始時運行start時,它可以正常工作。
謝謝。
Kaona (master *) todo $ npm start
> [email protected] start /Users/Kaona/GitHub/todo
> node ./bin/www
/Users/Kaona/GitHub/todo/node_modules/express/lib/view.js:62
throw new Error('No default engine was specified and no extension was provided.');
^
Error: No default engine was specified and no extension was provided.
at new View (/Users/Kaona/GitHub/todo/node_modules/express/lib/view.js:62:11)
at EventEmitter.render (/Users/Kaona/GitHub/todo/node_modules/express/lib/application.js:569:12)
at ServerResponse.render (/Users/Kaona/GitHub/todo/node_modules/express/lib/response.js:961:7)
at /Users/Kaona/GitHub/todo/routes/tasklist.js:27:17
at /Users/Kaona/GitHub/todo/models/taskDao.js:43:17
at Base.defineClass._toArrayImplementation (/Users/Kaona/GitHub/todo/node_modules/documentdb/lib/queryIterator.js:187:17)
at /Users/Kaona/GitHub/todo/node_modules/documentdb/lib/queryIterator.js:183:26
at /Users/Kaona/GitHub/todo/node_modules/documentdb/lib/queryIterator.js:234:17
at successCallback (/Users/Kaona/GitHub/todo/node_modules/documentdb/lib/documentclient.js:2069:17)
at IncomingMessage.<anonymous> (/Users/Kaona/GitHub/todo/node_modules/documentdb/lib/request.js:84:13)