diff --git a/npm-debug.log b/npm-debug.log deleted file mode 100644 index 807d49b..0000000 --- a/npm-debug.log +++ /dev/null @@ -1,37 +0,0 @@ -0 info it worked if it ends with ok -1 verbose cli [ 'C:\\Program Files (x86)\\nodejs\\\\node.exe', -1 verbose cli 'C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', -1 verbose cli 'start' ] -2 info using npm@2.11.2 -3 info using node@v0.12.5 -4 verbose run-script [ 'prestart', 'start', 'poststart' ] -5 info prestart myapp@0.0.0 -6 info start myapp@0.0.0 -7 verbose unsafe-perm in lifecycle true -8 info myapp@0.0.0 Failed to exec start script -9 verbose stack Error: myapp@0.0.0 start: `node ./bin/www` -9 verbose stack Exit status 1 -9 verbose stack at EventEmitter. (C:\Program Files (x86)\nodejs\node_modules\npm\lib\utils\lifecycle.js:213:16) -9 verbose stack at EventEmitter.emit (events.js:110:17) -9 verbose stack at ChildProcess. (C:\Program Files (x86)\nodejs\node_modules\npm\lib\utils\spawn.js:24:14) -9 verbose stack at ChildProcess.emit (events.js:110:17) -9 verbose stack at maybeClose (child_process.js:1015:16) -9 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1087:5) -10 verbose pkgid myapp@0.0.0 -11 verbose cwd C:\Users\Mitchell\Desktop\mywebsite -12 error Windows_NT 6.1.7601 -13 error argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start" -14 error node v0.12.5 -15 error npm v2.11.2 -16 error code ELIFECYCLE -17 error myapp@0.0.0 start: `node ./bin/www` -17 error Exit status 1 -18 error Failed at the myapp@0.0.0 start script 'node ./bin/www'. -18 error This is most likely a problem with the myapp package, -18 error not with npm itself. -18 error Tell the author that this fails on your system: -18 error node ./bin/www -18 error You can get their info via: -18 error npm owner ls myapp -18 error There is likely additional logging output above. -19 verbose exit [ 1, true ] diff --git a/routes/index.js b/routes/index.js index edf5ad0..a37fbfa 100644 --- a/routes/index.js +++ b/routes/index.js @@ -157,11 +157,9 @@ function timeValidator(time){ function renderIndex(res, json){ - temperature.findOne().sort('-updated').exec(function(err,query) { - console.log(query); - - console.log(query.temperature); - res.render('index',{validation : json, query : query}); + temperature.findOne().sort('-updated').exec(function(err,info) { + + res.render('index',{validation : json, query : info}); }); } \ No newline at end of file