Npm app setup could not read config
-
On mac(10.9), during npm app --setup, I got "could-not-read-config"
node app --setup
info: NodeBB v0.1.1 Copyright (C) 2013 DesignCreatePlay Inc.
info: This program comes with ABSOLUTELY NO WARRANTY.
info: This is free software, and you are welcome to redistribute it under certain conditions.
info:
info: NodeBB Setup Triggered via Command Line
info: Welcome to NodeBB!
info: This looks like a new installation, so you'll have to answer a few questions about your environment before we can proceed.
info: Press enter to accept the default setting (shown in brackets).
URL of this installation (http://localhost)
Port number of your NodeBB (4567)
Use a port number to access NodeBB? (y)
Please enter a NodeBB secret (fb4c3de5-988c-4bec-a31c-60b4506ca44b)
IP or Hostname to bind to (0.0.0.0)
Which database to use (redis)
Host IP or address of your Redis instance (127.0.0.1)
Host port of your Redis instance (6379)
Password of your Redis database
Which database to use (0..n) (0)
info: Configuration Saved OK
info: Populating database with default configs, if not already set...
error:
[Error: could-not-read-config] (I had to add console.log(err) in install.js)
warn: NodeBB Setup Aborted.npm --version
1.3.14node --version
v0.10.22git log
commit a717e9626e29b58c3fc44e9820e56d0a9b98d47b
Author: Baris Soner Usakli [email protected]
Date: Wed Dec 18 19:23:11 2013 -0500closes #666, the issue of the beast
-
could-not-read-config
That error is thrown in meta.js
list: function (callback) { db.getObject('config', function (err, config) { if(err) { return callback(new Error('could-not-read-config')); }
Which means something went wrong with the database. Is redis running?