Error - Cannot find module 'config'
javascript, node.js
Solution
I used the following code & it worked :-
config = require('../config/config');
Problem
I have mail configuration code in `all.js`. Now i am trying to import this in my `mail.js` service, so i imported the `config` module as follows :- mail.js ``` config = require('config'), ``` all.js ``` mailer: { auth: { user: "XXXXXXX", pass: "abc@123" } } ``` Gives me error cannot find module, but the module exists i have checked it. How to solve this?