我试图制作一个样板应用程序,将来自facebook,github和twitter的所有社交媒体流整合到一个汇总的新闻源中 . 我克隆了节点活动bolierplate应用程序并放入我的facebook app键来测试应用程序 . 在终端中执行节点server.js时我收到此错误:
enter image description here

/home/shiva/node-practice/FeedSort/lib/getConfig.js:10
抛出新错误('Could not load site config.')
^错误:无法加载站点配置 .
在对象 . (/home/shiva/node-practice/FeedSort/lib/getConfig.js:10:9)
在Module._compile(module.js:409:26)
at Object.Module._extensions..js(module.js:416:10)
在Module.load(module.js:343:32)
在Function.Module._load(module.js:300:12)
在Module.require(module.js:353:17)
at require(internal / module.js:12:17)
在对象 . (/home/shiva/node-practice/FeedSort/server.js:2:16)
在Module._compile(module.js:409:26)
at Object.Module._extensions..js(module.js:416:10)

我的siteConfig.js文件如下:
siteConfig.js

我在文本中的代码:

var settings = {
 'sessionSecret': 'sessionSecret'
 , 'port': 8080
 , 'uri': 'http://localhost:8080' // Without trailing /

// You can add multiple recipiants for notifo notifications
// , 'notifoAuth': null [
//  {
//      'username': 'shiva'
//      , 'secret': '12345'
//  }
// ]


// Enter API keys to enable auth services, remove entire object if they aren't used.
 , 'external': {
    'facebook': {
        appId: 'xxxxxxxxxx',
        appSecret: 'xxxxxxxxxxxxxxxxx'
    }
    // , 'twitter': {
    //  consumerKey: 'xxxxxxxxxx',
    //  consumerSecret: 'xxxxxxxxxx'
    // }
    // , 'github': {
    //  appId: 'xxxxxxxxxx',
    //  appSecret: 'xxxxxxxxxx'
    // }
 }

 , 'debug': (process.env.NODE_ENV !== 'production')
};

if (process.env.NODE_ENV == 'production') {
  settings.uri = 'http://yourname.no.de';
  settings.port = process.env.PORT || 80; // Joyent SmartMachine uses process.env.PORT

  //settings.airbrakeApiKey = '0190e64f92da110c69673b244c862709'; // Error    logging, Get free API key from https://airbrakeapp.com/account/new/Free
}
module.exports = settings;

Edit: getConfig.js

var siteConfig; 
try { 
    // Usually we check for siteConfig.js in project root. 
    siteConfig = require('../siteConfig'); 
} catch(e) { 
    try { // Looks for siteConfig in home dir, used for no.de 
        siteConfig = require(process.env.HOME+'/siteConfig'); 
    } catch(e) { 
        throw new Error('Could not load site config.') 
    } 
} 
module.exports = siteConfig;

有人可以帮帮我吗?