0
ReferenceError: mongodb is not defined
at C:\Users\john\meantut\sampsite\routes\index.js:11:21
at Layer.handle [as handle_request] (C:\Users\john\meantut\sampsite\node_modules\express\lib\router\layer.js:95:5)
at next (C:\Users\john\meantut\sampsite\node_modules\express\lib\router\route.js:131:13)
at Route.dispatch (C:\Users\john\meantut\sampsite\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\Users\john\meantut\sampsite\node_modules\express\lib\router\layer.js:95:5)
at C:\Users\john\meantut\sampsite\node_modules\express\lib\router\index.js:277:22
at Function.process_params (C:\Users\john\meantut\sampsite\node_modules\express\lib\router\index.js:330:12)
at next (C:\Users\john\meantut\sampsite\node_modules\express\lib\router\index.js:271:10)
at Function.handle (C:\Users\john\meantut\sampsite\node_modules\express\lib\router\index.js:176:3)
at router (C:\Users\john\meantut\sampsite\node_modules\express\lib\router\index.js:46:12)
因此,我正在關注設置平均堆棧的教程(http://www.newthinktank.com/2016/01/mean-stack-tutorial/),並且在設置mongodb時我在第12點。這一點只是爲了檢查mongo服務器和其他組件是否在一起工作,但對於我來說他們不是我收到這個錯誤。關於如何解決此問題的任何建議,將不勝感激,因爲我已經試過,沒有運氣未定義mongodb。幫助設置MEAN堆棧
非常感謝你的工作。非常感激 –