Error [ERR_REQUIRE_ESM]: require() of ES Module /home/rohanraj/node_modules/chalk/source/index.js from /home/rohanraj/SherNode/index.js not supported.
Instead change the require of /home/rohanraj/node_modules/chalk/source/index.js in /home/rohanraj/SherNode/index.js to a dynamic import() which is available in all CommonJS modules.
at Object. (/home/rohanraj/SherNode/index.js:3:15) {
code: 'ERR_REQUIRE_ESM'
}