sagarankoliya / realtime-private-chat-nodejs-socketio-vuejs-laravel

Realtime Private Chat NodeJS SocketIO Vue JS Laravel
82 stars 34 forks source link

No configurations found in configuration #4

Closed mostafa6765 closed 6 years ago

mostafa6765 commented 6 years ago

I have configure

{
    "dbConfig": {
        "host": "localhost",
        "port": 3306,
        "user": "root",
        "password": "mysql",
        "database": "chat"
    }
}

but show errors

[nodemon] starting `node ./index.js`
WARNING: No configurations found in configuration directory:C:\Users\Mostafa Kamal\realtime-private-chat-nodejs-socketio-vuejs-laravel\public\nodejs\config
WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment.
C:\Users\Mostafa Kamal\realtime-private-chat-nodejs-socketio-vuejs-laravel\public\nodejs\node_modules\config\lib\config.js:203
    throw new Error('Configuration property "' + property + '" is not defined');
    ^

Error: Configuration property "dbConfig.host" is not defined
    at Config.get (C:\Users\Mostafa Kamal\realtime-private-chat-nodejs-socketio-vuejs-laravel\public\nodejs\node_modules\config\lib\config.js:203:11)
    at new Db (C:\Users\Mostafa Kamal\realtime-private-chat-nodejs-socketio-vuejs-laravel\public\nodejs\utils\db.js:10:17)
    at Object.<anonymous> (C:\Users\Mostafa Kamal\realtime-private-chat-nodejs-socketio-vuejs-laravel\public\nodejs\utils\db.js:36:18)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
[nodemon] app crashed - waiting for file changes before starting...
sagarankoliya commented 6 years ago

You have to run this command

Go to project directory using Terminal / CMD Open public/nodejs folder

  1. export NODE_ENV=dev
  2. npm start
mostafa6765 commented 6 years ago

Thanks mate . solved ❤️

nexuslink-sumit commented 5 years ago

I still got error on windows 10. Image for configuration file for laravel and node. I tried with ("host": "localhost", OR "host": "127.0.0.1") both doesn't work. image

Image shows error on execution. image

sagarankoliya commented 5 years ago

Hi @nexuslink-sumit,

I think node environment not properly configured, please follow step carefully.

Still any issues let me know

Thanks