The config filenames need to be tied to the NODE_ENV or NODE_CONFIG_ENV you're setting when you run your app. (https://github.com/lorenwest/node-config/wiki/Configuration-Files#file-load-order)
You don't set NODE_ENV in the config files themselves.
So for example (assuming the command to run your app is npm start):
NODE_CONFIG_ENV=foo npm start
^ This would first load all of the config properties in default.json, then override them with any properties you set in foo.json. If you wanted to add a local.json, those properties would be a final override.
I believe it defaults to assuming your env is "development", and I'm guessing your default.json is empty.
Julien TASSIN, an example would be very helpful. Thanks. - user938363node-config, I thought you were using pure nodejs. I don't know this lib :/ - Julien TASSIN