Skip to content

Errors?

BlinksTale edited this page Nov 22, 2011 · 5 revisions

Errors

Common errors received while testing, and how to fix them.

Console/Terminal Errors

Node Errors

  1. Database user and/or password not found in environment. The environment variables were not set. Kill the server, then type in export KTAH_DB_USER="insertusernamehere" and export KTAH_DB_PASS="insertpasswordhere" with appropriate username and password for server side access.
  2. TypeError: Cannot read property 'players' of undefined at /Users/labadmin/ktah/src/main/controllers/game-controller.js:98:36 This means a copy of the game/client is still running in a browser on some computer. Close all copies of the game/clients and everything should work.
  3. Error: Cannot find module '...' It doesn't get easier than this. Assuming you already have npm installed, just use npm install ... for whatever the ... is that cannot be found.

Clone this wiki locally